From 711e4a2bb4d272726f2b6aa7c6c86b5ffd9cf971 Mon Sep 17 00:00:00 2001 From: serega404 Date: Mon, 30 Aug 2021 19:51:28 +0300 Subject: [PATCH] Added formatting templates guide for Intellij IDEA --- docs/building/IntelliJIDEAGuide.md | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/building/IntelliJIDEAGuide.md b/docs/building/IntelliJIDEAGuide.md index 7ce7c4c..e40bd69 100644 --- a/docs/building/IntelliJIDEAGuide.md +++ b/docs/building/IntelliJIDEAGuide.md @@ -41,4 +41,17 @@ Run configurations are used by Intellij IDEA to specify how a project must be ru 8. Append `\run` to the 'Working directory' field. Alternatively, specify another location outside of the project's root directory. 9. Click 'Apply' to save changes. -Step 8 is required to specify that the game must run in some directory other than the project root, which is the default in Intellij IDEA. \ No newline at end of file +Step 8 is required to specify that the game must run in some directory other than the project root, which is the default in Intellij IDEA. + +### Applying formatting templates + +Windcorp's Progressia repository is formatted with a style defined for Eclipse IDE (sic) in +`templates_and_presets/eclipse_ide`. +Please apply these templates to the project to automatically format the source in a similar fashion. + +1. In project context menu, click 'File->Properties'. (`Ctrl+Alt+S`) +2. In 'Editor' > 'Code Style' > 'Java', press gear icon, then click 'Import Scheme' > 'Eclipse code style' +3. In Scheme select 'Project' +4. Open the file `templates_and_presets/eclipse_ide/FormatterProfile.xml` in 'Select Path'. +5. Inside 'Import Scheme' widow click 'Current Scheme' check box after press OK +