Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/choonchernlim/intellij-config
Custom configuration for IntelliJ IDEA - code styles, live templates, etc
https://github.com/choonchernlim/intellij-config
code-formatter code-styles groovy intellij java javascript
Last synced: 2 days ago
JSON representation
Custom configuration for IntelliJ IDEA - code styles, live templates, etc
- Host: GitHub
- URL: https://github.com/choonchernlim/intellij-config
- Owner: choonchernlim
- License: mit
- Created: 2015-01-06T16:24:02.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-20T23:20:58.000Z (over 7 years ago)
- Last Synced: 2024-11-06T00:41:01.082Z (about 2 months ago)
- Topics: code-formatter, code-styles, groovy, intellij, java, javascript
- Language: Java
- Size: 18.6 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
intellij-config
===============Custom configuration for IntelliJ IDEA - code styles, file templates, live templates.
JavaScript's code style is based on the popular [Airbnb's JavaScript style guide](https://github.com/airbnb/javascript).
Installation
--------------Shut down IntelliJ IDEA.
Depending on the operating system, go to the IntelliJ IDEA's configuration directory:-
* Windows:
~\\.IntelliJIdeaXX\config
* Linux:~/.IntelliJIdeaXX/config
* OS X:~/Library/Preferences/IntelliJIdeaXX
Under the configuration directory, replace the following subdirectories:-
├── codestyles <--- Replace this dir
├── colors
├── componentVersions
├── consoles
├── eval
├── extensions
├── fileTemplates <--- Replace this dir
├── ideTalk
├── inspection
├── javascript
├── jdbc-drivers
├── options
├── quicklists
├── tasks
├── templates <--- Replace this dir
└── trpStart IntelliJ IDEA.
Upon IntelliJ IDEA restart, you may need to select the code style from the `Settings / Preferences Dialog`.
Code Styles Usage
-----------------`Alt + Cmd + L` (Mac) and `Alt + Ctrl + L` (Windows).
Live Templates Usage
--------------------#### Groovy - Spock
|Shortcut |Description |
|----------------------------------------|---------------------------------------------------------------------------|
|`def + ` |Spock - def given when then |#### JavaScript
|Shortcut |Description |
|----------------------------------------|---------------------------------------------------------------------------|
|`cl + ` |`console.log(..)` |
|`af + ` |ES6 - arrow function : `(..) => { .. }` |
|`de + ` |ES6 - `describe(..)` |
|`it + ` |ES6 - `it(..)` |