Git Product home page Git Product logo

java-code-styles's Introduction

Java Code Styles

This is a IntelliJ IDEA code style settings. Changes are welcome - submit pull requests and justify your thinking!

Installation

There are two approaches to installing the configuration files. Try the first approach, and if that fails, you can try the second (please file an issue in GitHub to let me know).

Approach One:

Windows -

  • Open IntelliJ Settings (Ctrl+Alt+s) -> Tools -> Settings Repository, click on the small + icon at the bottom of the 'read-only sources' list.
  • Enter the following URL into the dialog text field: https://github.com/JonathanGiles/java-code-styles.git
  • Open IntelliJ Settings (Ctrl+Alt+s) -> Editor -> Code Styles -> Java, change the scheme dropdown to Microsoft.
  • Open IntelliJ Settings (Ctrl+Alt+s) -> Editor -> Inspections, change the profile dropdown to Microsoft.

Mac OS -

  • Open IntelliJ Preferences -> Tools -> Settings Repository, click on the small + icon at the bottom of the 'read-only sources' list.
  • Enter the following URL into the dialog text field: https://github.com/JonathanGiles/java-code-styles.git
  • Open IntelliJ Preferences -> Code Styles -> Java, change the scheme dropdown to Microsoft.
  • Open IntelliJ Preferences -> Inspections, change the profile dropdown to Microsoft.

Approach Two:

  • Download this repo (either as a zip file or by cloning it).
  • Open IntelliJ Preferences -> Code Styles -> Java, click on the small cog icon next to the 'Scheme' dropdown. Select 'Import Scheme' -> 'IntelliJ code style XML' and browse to the codestyles directory. Select the Microsoft.xml file and load it. If necessary, change the scheme dropdown to Microsoft.
  • Open IntelliJ Preferences -> Inspections, click on the small cog icon next to the 'Profile' dropdown. Select 'Import Profile...' and browse to the config/inspection directory. Select the Microsoft.xml file and load it. If necessary, change the profile dropdown to Microsoft.

java-code-styles's People

Contributors

jonathangiles avatar g2vinay avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.