James Hyun

Avatar
  • 活动总数 16
  • 最后的活动
  • 成员加入日期
  • 关注 0 名用户
  • 关注者数 0 名用户
  • 投票数 1
  • 订阅数 6
  • 创建于

    CPU usage on macOS Ventura is almost 100%

    已回答
    OS: macOS Ventura Specifications: iMac 27 (2019) - 3 GHz 6 Core Intel Core i5, 32GB 2667 MHz DDR4 Memory IntelliJ IDEA occupies almost 90%~99% of CPU. How can I reduce cpu utilization? CPU throt...
    • 2 个关注者
    • 5 条评论
    • 0 票
  • 创建于

    How can I keep indents on black line when pasting code?

    已回答
    if (some < bigger) { const now = moment(); const nowDate = now.toDate(); // here console.log(now); console.log(nowDate);} I already turned on 'Keep indents on empty lines' option, but indentat...
    • 2 个关注者
    • 1 条评论
    • 0 票
  • 创建于

    app.use() marked as "Argument types do not match parameters"

    const express = require('express');const app = express();function logger(req, res, next) { ... }app.use(logger); // # Webstorm marks line '#' as "Argument types do not match parameters". I've alrea...
    • 2 个关注者
    • 1 条评论
    • 0 票
  • 创建于

    date-fns: Method expression is not of Function type

    const subDays = require('date-fns/subDays');subDays(new Date(), (offset + 6)); In this code, Webstorm shows error message "Method expression is not of Function type" for subDays(...); How can I rem...
    • 2 个关注者
    • 1 条评论
    • 0 票
  • 已编辑于

    Vue.prototype is marked as unused

      I've defined vue prototype '$http' in ../frontend/src/main.js, and it is used in ../frontend/src/components/IndexPage.vue file. But IntelliJ marks '$http' as unused definition. How can I fix this?
    • 2 个关注者
    • 1 条评论
    • 0 票
  • 创建于

    IntelliJ IDEA doesn't recognize ioredis module

    const Redis = require('ioredis'); const redis = new Redis(); let howMany = redis.pfcount('mau_key'); I'm trying to ioredis module in JavaScript code, but IntelliJ doesn't recognize ioredis' librar...
    • 2 个关注者
    • 2 条评论
    • 0 票