Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • Briar Desktop Briar Desktop
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 229
    • Issues 229
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • briarbriar
  • Briar DesktopBriar Desktop
  • Wiki
  • Code Style

Code Style · Changes

Page history
Update Code Style authored Sep 16, 2021 by Sebastian's avatar Sebastian
Hide whitespace changes
Inline Side-by-side
Code-Style.md
View page @ d6d5c5fe
......@@ -57,4 +57,8 @@ Similarly, you can create a script at `.git/hooks/pre-commit` to check the codin
The linter requires every file to end with a line break. IntelliJ doesn't add those by default, so to force it to do that, enable the following setting:
`Settings` → `Editor` → `General` → `On Save` → `Ensure every saved file ends with a line break`
\ No newline at end of file
`Settings` → `Editor` → `General` → `On Save` → `Ensure every saved file ends with a line break`
## Save Actions Plugin
Speaking about performing things during saving, the Save Actions Plugin can be installed into IntelliJ and configured to Optimize imports and reformat files on save. It can be downloaded via the Plugins section in the Settings screen. Once installed, there's a separate configuration item in the Settings navigation for Save Actions and one needs to activate save actions, and enable "Optimize imports" and "Reformat file".
\ No newline at end of file
Clone repository
  • Accessibility
  • Changelog
  • Code Style
  • Milestones Graph
  • Milestones
  • Home