File Association for Command Line Argument Files?

已回答

The `java` command supports the concept of an argument file (or @-file). These are very useful but when I create them IntelliJ doesn't know what they are and treats them as plain-text. These files do have a syntax to them (documented here). I've been creating files called `jvm.config` to place my arguments. Does IntelliJ have a file type association or syntax highlighting support for these kinds of files? If so, what's it called so I can map my files over to it? If it doesn't, this may be a good feature to add. Thanks.

1

Currently there is no filetype specifically for java argument files. As I see editing the IDEA .vmoptions also associates to text file. 
You can create a textmate grammer for syntax highlighting which can be shared with the community:  https://macromates.com/manual/en/language_grammars . Meanwhile I have create a feature request which you can vote so it can be prioritised : https://youtrack.jetbrains.com/issue/IJPL-197125

1

Thanks for the info and for creating the ticket! Much appreciated!

0

请先登录再写评论。