文件大小超过配置的限制(2560000),代码洞察功能不可用

yhxst69z  于 2022-09-20  发布在  其他
关注(0)|答案(11)|浏览(459)

我正尝试在JetBrains WebStorm 8中处理一个大的Java脚本文件,在编辑窗口的顶部收到一条消息,上面写着:
文件大小超过配置的限制(2560000)。代码洞察功能不可用。

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

mqkwyuun

mqkwyuun1#

在IntelliJ 2016和更高版本中,您可以从帮助菜单编辑自定义属性(由@eggants br注解)来更改此设置。

在较旧的版本上,没有图形用户界面来完成这项工作。但您可以更改它,如果您edit the IntelliJ IDEA Platform Properties文件:


# ---------------------------------------------------------------------

# 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
pjngdqdw

pjngdqdw2#

这是基于阿尔瓦罗·冈萨雷斯的回答,以及如何在Mac上增加IntelliJ Idea中的IDE内存限制?

转到帮助>编辑自定义属性

添加:

idea.max.intellisense.filesize=999999

重新启动IDE。

gev0vcfq

gev0vcfq3#

编辑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

q1qsirdb

q1qsirdb4#

转到IDE:

  • 第一步:打开菜单项:点击[帮助],点击[编辑自定义属性]
  • 第二步:设置参数:idea.max.intellisense.filesize= 999999999
  • 第三步:重启IDE
yhuiod9q

yhuiod9q5#

PhpStorm 2020

1.帮助->编辑自定义属性。
1.文件将在编辑器中打开。将以下部分粘贴到文件中。


# ---------------------------------------------------------------------

 # 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

1.文件->失效/重启->重启

这有时可能不会更新,您可能需要编辑根idea.properties文件。

要为任何版本的IDEA编辑此文件

1.转到应用程序位置,即linux=>/opt/PhpStorm[版本]/bin
1.找到名为idea.Properties的文件,对该文件进行备份,即idea.Properties.old
1.使用任何txt编辑器打开原始文档。
1.找到idea.max.intellisense.filesize=
1.替换为idea.max.intellisense.filesize=your_required_size,即idea.max.intellisense.filesize=10480``NB by default this size is in kb
1.保存并重新启动IDE。

4nkexdtk

4nkexdtk6#

Instructions for changing this settings in latest Jetbrains products

编辑Product64.vmtions对我不起作用,但编辑idea.Properties很好。此外,为了能够处理大文件,您可能需要在Product64.vmOptions/Product.vm中更改-xms和-xmx的选项的值

knsnq2tg

knsnq2tg7#

针对64位2020版本

我试图找到2020版这个文件的当前位置,但没有成功。导航到Help > Edit Custom Properties时,将在appData/Roaming/JetBrains/IntelliJIdea2020.1/idea.properties创建一个新(空)文件。没有一些教程所建议的/bin目录。然而,无论是将accepted answer中的块添加到此文件,还是将相同的文件添加到/bin中,都不会导致更新我的配置。

我终于发现appData/Roaming/JetBrains/IntelliJIdea2020.1/idea64.exe.vmoptions中存在对相同属性的引用。它看起来是这样的:

-Didea.max.intellisense.filesize=3470

我将其更改为以下内容,应该足以满足我的需求:

-Didea.max.intellisense.filesize=9999

这在我看来是这个版本中的一个错误,菜单项的行为并不反映需要什么,但也可能是因为我的特定设置与库存有某种不同。我确实安装了PyCharm和JDK。

x7rlezfr

x7rlezfr8#

要澄清Alvaro's答案,您需要将-D选项添加到命令行列表中。我使用的是PyCharm,但概念是相同的:

pycharm{64,.exe,64.exe}.vmoptions:
<code>
    -server
    -Xms128m
    ...
    -Didea.max.intellisense.filesize=999999 # <--- new line
</code>
wbrvyc0a

wbrvyc0a9#

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

  • PyCharm CE:/Applications/PyCharm CE.app/Contents/bin/idea.properties
  • WebStorm:/Applications/WebStorm.app/Contents/bin/idea.properties
nmpmafwu

nmpmafwu10#

*WebStorm的Windows默认安装位置

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

我去了x4 default for intellisensex5 for file size

(我的商用工作站是一只野兽,不过:第八代i7,32 GB内存,NVMe PCIE3.0x4 SDD,幸灾乐祸等,幸灾乐祸等等)


# ---------------------------------------------------------------------

# 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
6ovsh4lw

6ovsh4lw11#

更改帮助菜单的上述选项对我不起作用。您已经编辑了idea.Properties文件,并更改为某个较大的no。

MAC: /Applications/<Android studio>.app/Contents/bin[Open App contents] 

Idea.max.intellisense.filesize=999999 

WINDOWS: IDE_HOMEbinidea.properties

相关问题