0

I'm using Sublime Text 3, I've set the default indentation settings per the doc.

enter image description here

However, when I relaunch the app, the default tab size is still 4 spaces. How do I do?

enter image description here

Here is the settings

{
"translateTabsToSpaces": true,
"tabSize": 2,
"detect_indentation":true, // I've also tried set this item as false, neither works.
}
0

1 Answer 1

2
+50

Per the current documentation at https://www.sublimetext.com/docs/3/indentation.html:

{
    "tab_size": 2
}

Then save the User/Preferences.sublime-settings file and the change will take effect instantly.

Or change the Indentation setting under the View menu.

2
  • Thank you. Did you successfully change the setting yourself with this method?
    – JJJohn
    Dec 13, 2020 at 23:12
  • @JJJohn Yes, I tested it. Dec 13, 2020 at 23:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .