|
|
|
# Eclipse: Setup and Configuration
|
|
|
|
|
|
|
|
## Eclipse Configuration <br/>
|
|
|
|
|
|
|
|
### set up Eclipse formatter
|
|
|
|
- import [the code formatter from the course repository](https://github.com/eugenp/tutorials/tree/master/eclipse) into Eclipse (`Preferences - Java - Code Style - Formatter - Import`)
|
|
|
|
|
|
|
|
|
|
|
|
## Eclipse - Editors Configuration
|
|
|
|
|
|
|
|
### HTML
|
|
|
|
- Menu: _Window > Preferences > Web > HTML Files > Editor_
|
|
|
|
- **set**: `Line Width` to **180**
|
|
|
|
- **check**: `Align final bracket in multi-line element tags`
|
|
|
|
- **check**: `Indent using spaces`
|
|
|
|
- **set**: `Indentation size` to **3**
|
|
|
|
- **remove**: `input` from Inline Elements
|
|
|
|
- **uncheck**: everything else (from the Formatting section)
|
|
|
|
|
|
|
|
### XML
|
|
|
|
- Menu: _Window > Preferences > XML > XML Files > Editor_
|
|
|
|
- **set**: `Line Width` to **180**
|
|
|
|
- **check**: `Align final bracket in multi-line element tags`
|
|
|
|
- **check**: `Format comments`
|
|
|
|
- **check**: `Join lines`
|
|
|
|
- **check**: `Indent using spaces`
|
|
|
|
- **set**: `Indentation size` to **3**
|
|
|
|
- **uncheck**: everything else (from the Formatting section) |