How to put 2 spaces in sublime text 3?

3

Hello I want that instead of the 4 spaces that sublime text 3 makes me in the indentation when doing tab are only two spaces How can I do this?

    
asked by Israel Omar Del Angel Valencia 22.04.2016 в 00:33
source

2 answers

2

In the menu go to View > Indentation > Tab width: 2.

    
answered by 22.04.2016 / 00:34
source
3

Another way to do this is to use EditorConfig to be independent of the editor.

To be able to use it you only need to create a .editorconfig within your project, add the options you want and finally install the plugin to recognize the configurations. Example of a .editorconfig :

style_guide_version = 1.1.0

# 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
max_line_length = 120
    
answered by 22.04.2016 в 01:22