This question has already been answered:

How to bring everything to the following rules -
indent_style = space,
indent_size = 4,
whole project automatically, which is in the src folder?

Reported as a duplicate by sercxjo , dirkgntly , pavel , aleksandr barakin , Denis Aug 26 '16 at 6:07 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

    1 answer 1

    It is necessary to find all tabs with a regular expression and change it to 4 spaces

    1. Ctrl + Shift + F
    2. Make sure that regression search is enabled.
    3. Find: \ t, Replace: (4 spaces)
    4. in the field "where" you can specify in which folder to replace

    enter image description here

    • Can we somehow find where instead of 4 spaces 2? - drtvader
    • @drtvader also search by reg expression. in the find field - ^ \ s \ s, in the replace field, 4 spaces - Almaz V.
    • @drtvader there are also plugins - beautifiers for the sublaim, with which you can automatically align the code. For example packagecontrol.io/packages/HTML-CSS-JS%20Prettify for html css and javascript, well customizable - Almaz V.
    • Thank! Install yourself! - drtvader
    • Almaz V., 1) It is better to use ^ {4} , rather than 4 spaces. 2) After the conversion, so that the problem no longer bothers, you should use the EditorConfig plugin. The reasons I wrote in detail in this answer. Thank. - Sasha Chernykh