Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nepaul/editorconfig-generator
VSCode Extension: EditorConfigGenerator. 😔No longer maintained(i forgot the old aruze account). Try it! 👉 https://marketplace.visualstudio.com/items?itemName=nepaul.editorconfiggenerator
https://github.com/nepaul/editorconfig-generator
formatter vscode-extension
Last synced: 8 days ago
JSON representation
VSCode Extension: EditorConfigGenerator. 😔No longer maintained(i forgot the old aruze account). Try it! 👉 https://marketplace.visualstudio.com/items?itemName=nepaul.editorconfiggenerator
- Host: GitHub
- URL: https://github.com/nepaul/editorconfig-generator
- Owner: nepaul
- License: mit
- Created: 2017-02-07T08:47:15.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-21T10:14:11.000Z (over 6 years ago)
- Last Synced: 2024-04-14T05:31:14.608Z (7 months ago)
- Topics: formatter, vscode-extension
- Language: JavaScript
- Homepage:
- Size: 20.5 KB
- Stars: 9
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# EditorConfigGenerate
Generate a simple editor config file for usual situation.
As follows:```
# http://editorconfig.org
root = true[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true# Use 4 spaces for the Python files
[*.py]
indent_size = 4
max_line_length = 80# The JSON files contain newlines inconsistently
[*.json]
insert_final_newline = ignore# Minified JavaScript files shouldn't be changed
[**.min.js]
indent_style = ignore
insert_final_newline = ignore# Makefiles always use tabs for indentation
[Makefile]
indent_style = tab# Batch files use tabs for indentation
[*.bat]
indent_style = tab[*.md]
trim_trailing_whitespace = false
```## Installation
```
ext install editorconfiggenerator
```## Usage
1. launch the Command Pallete (**Ctrl + Shift + P** or **Cmd + Shift + P**)
2. type **GenerateEditorConfig**, then it will generate a .editorconfig in your root project directory
3. if you find that .editorconfig has been generated but not worked, restart your vscode please![Visual Studio Code]: https://code.visualstudio.com/
[EditorConfig]: http://editorconfig.org/