-
Notifications
You must be signed in to change notification settings - Fork 0
IntelliJ IDEA configuration
Table of contents
You can create custom file types to enable parsing these files in the editor by defining highlighting schemes for keywords, comments, numbers, and so on.
To configure how IntelliJ IDEA treats a .proto file:
- Download a configuration file.
- Move it to IntelliJ IDEA config directory and restart the IDE.
<SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.<PRODUCT><VERSION>\config\filetypes
~/Library/Preferences/<PRODUCT><VERSION>/filetypes
~/.<PRODUCT><VERSION>/config/filetypes
Where PRODUCT is IntelliJIdea or IdeaIC, VERSION is IntelliJ IDEA version (14, 15, and so on).
The templates are available for the repeated patterns. They are located in config repository under .idea/live-templates directory.
They are not picked up by IDEA automatically and should be installed manually. Follow the instruction left in README.md file along
with the templates.
All Spine projects use the same code style settings, inspection profiles, and so on. Updating these files manually after making changes to the project is time-consuming. To solve the problem and update the required file automatically, use the following script:
core-java/config/update-spine-config
If you want to update configuration for SpineEventEngine/tools:
- Copy the
core-java/config/update-spine-config.shor*.batto.../IdeaProjects/tools/config. - Optionally change the list of files which you want to update. By default, it updates
.idea/configuration and the contents ofscripts/folder. - Execute the script, which does the following:
- Replaces files by the corresponding ones from
core-java. - If there are differences after the replacement, executes the following steps. 2.1 Creates a new branch. 2.2 Creates a commit with the updated files. 2.3 Pushes the commit.
- Replaces files by the corresponding ones from
- Manually create a new pull request for these changes.
- Start IntelliJ IDEA and open the Plugins dialog.
- Click the Browse repositories button and choose the
Buildcategory. - Find the Error-prone Compiler Integration plugin area.
- Right-click and choose Download and install. The IDE will restart after you close the dialogs.
- In IntelliJ IDEA, open the Settings dialog or Preferences dialog in Mac OSx.
- Select Compiler | Java Compiler | Use compiler: Javac with error-prone.
- Make sure that Compiler | Use external build is NOT selected.
In a Compiler | Java Compiler dialog, add the following option to the Additional command line parameters field:
-XepExcludedPaths:.*/generated/.*