我正在尝试在Jetbrains WebStorm 8中处理大型Javascript文件,并且我在编辑窗口的顶部收到一条消息:
文件大小超过配置的限制(2560000).代码洞察功能不可用.
如何增加"配置限制"以访问所有功能?
Álv*_*lez 220
在IntelliJ 2016及更新版本中,您可以从"帮助"菜单"编辑自定义属性"(由@eggplantbr评论)更改此设置.
在旧版本中,没有GUI可以执行此操作.但是,如果编辑IntelliJ IDEA平台属性文件,则可以更改它:
#---------------------------------------------------------------------
# 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=2500
Run Code Online (Sandbox Code Playgroud)
Hen*_*nry 51
这是根据ÁlvaroGonzález的答案以及如何在Mac上的IntelliJ IDEA中增加IDE内存限制而构建的?
转到帮助>编辑自定义属性
加:
idea.max.intellisense.filesize=999999
Run Code Online (Sandbox Code Playgroud)
重新启动IDE.
Bre*_*mer 19
PhpStorm 2020
#---------------------------------------------------------------------
# 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=2500
Run Code Online (Sandbox Code Playgroud)
有时这可能不会更新,您可能需要编辑根 idea.properties 文件。
为任何版本的 Idea 编辑此文件
idea.max.intellisense.filesize=idea.max.intellisense.filesize=your_required_size
ieidea.max.intellisense.filesize=10480
NB by default this size is in kbsen*_*982 15
编辑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
Run Code Online (Sandbox Code Playgroud)
保存并重新启动IDEA
进入IDE:
第 1 步:打开菜单项:单击“帮助”,然后单击“编辑自定义属性”
STEP 2:设置参数:
idea.max.intellisense.filesize= 999999999
编辑product64.vmoptions对我没有用,但编辑idea.properties工作正常.另外,为了能够处理大型文件,您可能需要更改product64.vmoptions/product.vmoptions中-Xms和-Xmx的值
为了阐明Alvaro的答案,您需要在命令行列表中添加-D选项。我正在使用PyCharm,但是概念是相同的:
pycharm{64,.exe,64.exe}.vmoptions:
<code>
-server
-Xms128m
...
-Didea.max.intellisense.filesize=999999 # <--- new line
</code>
Run Code Online (Sandbox Code Playgroud)
对于那些不知道在哪里可以找到他们正在谈论的文件的人。在我的机器 (OSX) 上,它位于:
/Applications/PyCharm CE.app/Contents/bin/idea.properties/Applications/WebStorm.app/Contents/bin/idea.properties我试图为 2020 版找到此文件的当前位置,但徒劳无功。当导航到Help > Edit Custom Properties一个新的(空)文件时,在appData/Roaming/JetBrains/IntelliJIdea2020.1/idea.properties. 有些教程建议没有 /bin 目录。但是,无论是将接受的答案中的块添加到此文件,还是将相同的文件添加到 /bin 都不会导致我的配置更新。
我终于发现在appData/Roaming/JetBrains/IntelliJIdea2020.1/idea64.exe.vmoptions. 它看起来像这样:
-Didea.max.intellisense.filesize=3470
Run Code Online (Sandbox Code Playgroud)
我把它改成这样,这应该足以满足我的需要:
-Didea.max.intellisense.filesize=9999
Run Code Online (Sandbox Code Playgroud)
这让我觉得是这个版本中的一个错误,菜单项的行为没有反映所需的内容,但也可能是我的特定设置与库存有些不同。我确实安装了 PyCharm 和 JDK。
| 归档时间: |
|
| 查看次数: |
71566 次 |
| 最近记录: |