且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

IntelliJ IDEA插件可以折叠.conf文件吗?

更新时间:2022-12-18 19:31:12

这些.conf文件属于HOCON类型(人类优化的配置对象表示法").要启用折叠功能,您必须强制编辑器对它们进行同样的处理.在IntelliJ设置中,如下所示进行配置:

Those .conf files are of HOCON type ("Human-Optimized Config Object Notation"). To enable folding them, you have to force the editor treat them as such. In IntelliJ settings, configure it as illustrated:

Preferences->Editor->File Types,然后在HOCON文件类型中添加文件名模式.

Preferences->Editor->File Types, and there add filename patterns to HOCON filetype.