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

Intellij idea 文件大小超过配置的限制(2560000),代码洞察功能不可用,intellij-idea,Intellij Idea,我正试图在Jetbrains WebStorm 8中处理一个大型Javascript文件,我在编辑窗口顶部收到一条消息,上面写着: 文件大小超过配置的限制(2560000)。代码洞察功能不可用 如何增加“配置限制”以访问所有功能?在IntelliJ 2016及更新版本中,您可以从“帮助”菜单中更改此设置,编辑自定义属性(如@eggplantbr所述) 在旧版本上,没有GUI来执行此操作。但如果您提交以下文件,则可以对其进行更改: 为了澄清答案,您需要将-D选项添加到命令行列表中。我使用的是PyC

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

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


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

在IntelliJ 2016及更新版本中,您可以从“帮助”菜单中更改此设置,编辑自定义属性(如@eggplantbr所述)

在旧版本上,没有GUI来执行此操作。但如果您提交以下文件,则可以对其进行更改:

为了澄清答案,您需要将-D选项添加到命令行列表中。我使用的是PyCharm,但概念是一样的:

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

-服务器
-Xms128m
...

-Didea.max.intellisense.filesize=9999999#适用于那些不知道在哪里找到他们正在谈论的文件的人。在我的机器(OSX)上,它位于:

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

编辑product64.vmoptions对我不起作用,但编辑idea.properties效果不错。 此外,为了能够处理大文件,您可能需要更改product64.vmoptions/product.vmoptions中-Xms和的值
-Xmx

这是根据阿尔瓦罗·冈萨雷斯的答案和

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

加:


重新启动IDE。

编辑IDEA的配置文件:
IDEA\u 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”

更改“帮助”菜单中的上述选项对我无效。 您已编辑idea.properties文件,并更改为某个大编号

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

Idea.max.intellisense.filesize=999999 

WINDOWS: IDE_HOME\bin\idea.properties
MAC:/Applications/.app/Contents/bin[打开应用程序内容]
Idea.max.intellisense.filesize=999999
WINDOWS:IDE\u HOME\bin\idea.properties

Webstorm的Windows默认安装位置

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

我选择了intellisense的默认值为
x4,文件大小为
x5

(尽管如此,我的业务工作站还是一头野兽:8th gen i7、32Gb RAM、NVMe PCIE3.0x4 SDD、gloat等、gloat等

转到IDE:

步骤1: 打开菜单项:单击帮助,然后单击编辑自定义属性

步骤2: 设置参数:

对于64位2020版本,idea.max.intellisense.filesize=999999999

我试图找到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
我把它改成这样,这应该足以满足我的需要:

-Didea.max.intellisense.filesize=9999
在这个版本中,菜单项的行为不能反映所需的内容,但也可能是因为我的特定设置与库存有所不同。我确实安装了PyCharm和JDK。

PhpStorm 2020

  • 帮助->编辑自定义属性
  • 文件将在编辑器中打开。将下面的部分粘贴到文件中
  • 文件->无效/重新启动->重新启动
  • 这有时可能不会更新,您可能需要编辑根idea.properties文件

    为Idea的任何版本编辑此文件

  • 转到应用程序位置,即linux=>/opt/PhpStorm[version]/bin
  • 查找名为idea.properties的文件备份文件,即idea.properties.old
  • 使用任何txt编辑器打开原始文件
  • 查找
    idea.max.intellisense.filesize=
  • 替换为
    idea.max.intellisense.filesize=所需大小
    i、 e
    idea.max.intellisense.filesize=10480
    NB默认情况下,此大小以kb为单位
  • 保存并重新启动IDE

  • 您不必添加'-D',您需要使用idea.properties文件而不是vmoptions文件。我正在使用64位可执行文件并将其添加到idea.properties中,但未应用更改。如上所述添加换行符为我解决了这个问题。是否应该有一个可比较的idea64.properties文件?@Noremac-在同一个
    bin
    目录中有一个
    -Didea.properties.file=…
    JVM选项-?记住为Webstorm 11.0.3添加一个类似“999999”的值,删除此字段或将其设置为极高的值(大约12个9)不起作用。代码洞察功能包括“检查”和代码格式。我知道在我增加文件大小限制之前,这两个功能在我打开的8MB XML文件上都不起作用。当我在android studio中这样做时,它会说“文件C/users/…androidstudio3.0/…../ideas.customproperties不存在。Create?”我不确定我是否想冒险搞砸一些东西。我想知道为什么会超过这个限制我的自动完成和其他功能在注意到这条消息后就停止了。我们可以对JetBrain的IntelliJ IDE派生使用相同的方法。我已经在RubyMine 2018.2.1中进行了验证。像@Andy一样,我遇到过一种情况,我正在查看一些大的、未格式化的XML文件。重新格式化一个3.5MB的文件相当慢,但现在可以工作了,这正是我想要的。在Android项目中,当R资源类无法识别时使用它,如中;因为生成的源文件超出了限制。对于Windows上的Android Studio,它要求我创建新文件
    C:\Users\\\.AndroidStudio2.3\idea.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=10000
    
        #---------------------------------------------------------------------
        # Maximum file size (kilobytes) IDE is able to open.
        #--------------------------------------------------------------------- 
    
    idea.max.content.load.filesize=100000
    
    -Didea.max.intellisense.filesize=3470
    
    -Didea.max.intellisense.filesize=9999
    
     #---------------------------------------------------------------------
     # 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