Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
└── trp

Start 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(..)` |