我试图在Jetbrains WebStorm 8中处理一个大型Javascript文件,我在编辑窗口顶部收到一条消息,说:

文件大小超过配置限制(2560000)。代码洞察特性不可用。

如何增加“配置限制”以访问所有功能?


当前回答

对于那些不知道在哪里找到他们正在谈论的文件的人。在我的机器(OSX)上,它在:

PyCharm CE: /Applications/PyCharm CE.app/Contents/bin/idea.properties WebStorm: / / WebStorm.app /内容/ bin / idea.properties应用

其他回答

对于那些不知道在哪里找到他们正在谈论的文件的人。在我的机器(OSX)上,它在:

PyCharm CE: /Applications/PyCharm CE.app/Contents/bin/idea.properties WebStorm: / / WebStorm.app /内容/ bin / idea.properties应用

Webstorm的Windows默认安装位置:

C:\Program Files\JetBrains\WebStorm 2019.1.3\bin\idea.properties

智能感知默认设置为x4,文件大小默认设置为x5

(我的商业工作站是一个野兽:第8代i7, 32Gb RAM, NVMe pcie3.0 0x4 SDD, gloat,等等,gloat,等等)

#---------------------------------------------------------------------
# Maximum file size (kilobytes) IDE should provide code assistance for.
# The larger file is the slower its editor works and higher overall system memory requirements are
# if code assistance is enabled. Remove this property or set to very large number if you need
# code assistance for any files available regardless their size.
#--------------------------------------------------------------------- 
idea.max.intellisense.filesize=10000

    #---------------------------------------------------------------------
    # Maximum file size (kilobytes) IDE is able to open.
    #--------------------------------------------------------------------- 

idea.max.content.load.filesize=100000

这是建立在Álvaro González的答案和如何增加IDE内存限制IntelliJ IDEA在Mac上?

进入帮助>编辑自定义属性

Add:

idea.max.intellisense.filesize=999999

重新启动IDE。

编辑IDEA的配置文件:IDEA_HOME/bin/ IDEA .properties

# Maximum file size (kilobytes) IDE should provide code assistance for.
idea.max.intellisense.filesize=60000

# Maximum file size (kilobytes) IDE is able to open.
idea.max.content.load.filesize=60000

保存并重新启动IDEA

在最新Jetbrains产品中更改此设置的说明

编辑product64。Vmoptions没有为我工作,但编辑的想法。属性工作正常。 另外,为了能够处理大文件,您可能需要更改product64中的值。Vmoptions / product。vmoptions用于-Xms和 - xmx