ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Editor​Config​Snippets

by mfuentesg ST2/ST3

A set of snippets for EditorConfig files

Details

Installs

  • Total 4K
  • Win 2K
  • OS X 2K
  • Linux 846
Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13
Windows 4 2 4 3 1 2 1 6 6 0 1 4 10 4 8 3 5 1 5 8 20 6 1 3 3 5 6 5 7 3 3 3 3 5 3 5 6 1 3 3 8 5 8 2 5 0
OS X 2 4 4 5 5 2 5 7 3 0 0 2 3 4 8 4 2 1 3 5 14 5 5 2 1 5 3 7 5 4 3 1 1 10 7 2 6 1 4 2 8 4 8 5 1 2
Linux 0 4 2 1 2 3 11 3 1 1 1 2 2 0 4 0 2 1 3 2 3 1 0 0 1 0 4 2 3 5 1 1 2 2 3 4 2 1 2 1 2 3 1 1 2 3

Readme

Source
raw.​githubusercontent.​com

EditorConfigSnippets

EditorConfigSnippets is a set of snippets for .editorconfig files.

Installation

It is recommended install EditorConfig.

With Package Control

To install this plugin you can use Package Control and looks for EditorConfigSnippets.

With Git

Clone this repository to Packages folder

cd /path/to/Packages
git clone https://github.com/mfuentesg/EditorConfigSnippets

Snippets Available:

The snippets are independent, so each has similar properties. Each snippet works on the .editorconfig scope, and you can call it using the following triggers.

  • editor-base
  • editor-bash
  • editor-c
  • editor-cpp
  • editor-frontend
  • editor-go
  • editor-javascript
  • editor-md
  • editor-php
  • editor-perl
  • editor-python
  • editor-ruby
  • editor-txt

My recommended Settings

root = true

[*]
max_line_length = 100
end_of_line = lf
indent_style = space
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.sh]
indent_size = 2

[*.html]
indent_size = 2

[*.{js,json}]
indent_size = 2

[*.{css,styl,scss,less,sass}]
indent_size = 2

[*.php]
indent_size = 4

[*.rb]
indent_size = 2

[*.py]
indent_size = 4

[*.txt]
indent_size = 4

[*.{c,cpp}]
indent_size = 4
trim_trailing_whitespace = false
insert_final_newline = false

[*.go]
indent_size = 2
indent_style = tab

[*.md]
trim_trailing_whitespace = false
indent_style = tab

Contributions

You are welcome to generates a PR with your favorite guidelines.