In the Recognized File Types section, click, specify the name of the new type, and provide a description. Press Control+Alt+S to open the IDE settings and then select Editor | File Types. If you work on a language that is not supported by default and there are no plugins for it, you can configure a simple language service for files associated with this language - you will enjoy syntax highlighting for keywords, comments, and braces and have some basic editor helpers such as adding line/block comments with Control+/ / Control+Shift+/ and extending/shrinking selection according to the structure with Control+W / Control+Shift+W. If the filename doesn't match any of the patterns registered for file types, you can associate the filename pattern with a specific file type.Īpart from that, you can make IntelliJ IDEA the default application for opening specific file types from the file manager on your operating system. When you open a file in the editor, IntelliJ IDEA chooses the file type and the corresponding language service according to the filename pattern. If you are working on a language that is not supported in IntelliJ IDEA by default, there might be plugins supporting that language depending on the IntelliJ IDEA edition. The default list of file types covers all relevant filename patterns, but you can add new file types for your custom language files and change the associated filename patterns for existing file types. Or click "Copy To." in the toolbar.For language-specific features (such as syntax highlighting and code analysis) in files representing different languages and technologies, IntelliJ IDEA maintains a list of file types, each of which links a language service with one or more filename patterns.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |