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

https://github.com/doansamquoc/java-format-style

Java formatter
https://github.com/doansamquoc/java-format-style

chill java java-formatter java-style

Last synced: 13 days ago
JSON representation

Java formatter

Awesome Lists containing this project

README

          

# Java Format Style
I spent a whole afternoon with Eclipse just editing the formatting of classes, functions and each line of code :D

## Format
- Maximum line width: `100`
- Indentation size: `4`
- Tab size: `4`
- Too lazy to update
## Usage
1. **For VS Code
**
- You should be installed this extension https://marketplace.visualstudio.com/items?itemName=redhat.java

- After that copy this and paste into your `settings.json`:
```json
"[java]": {
"editor.defaultFormatter": "redhat.java",
},
"java.format.settings.url": "https://raw.githubusercontent.com/doansamquoc/java-format-style/refs/heads/main/v1.xml"
```
2. **For IntelliJ**
- Download this https://github.com/doansamquoc/java-format-style/blob/main/v1.xml
- Go to `Settings` > `Editor` > `Code Style` > `Java` > `Import Schema` > `Eclipse XML Profile` and choose file.
## Preview
Some images to preview `Java Format Style` with my ugly code :D




![Preview](https://github.com/doansamquoc/java-format-style/blob/main/preview/1.png)
![Preview](https://github.com/doansamquoc/java-format-style/blob/main/preview/2.png)
![Preview](https://github.com/doansamquoc/java-format-style/blob/main/preview/3.png)