Sublime Forum

JavaScript Indentation doesn't respect my settings?

#1

I’m having a problem with my JavaScript files indentation & word wrapping. I have set the indentation to “tab size = 4” & also word wrap to wrap, but whenever I opened a JS file the indentation is set to spaces = 2 & there is now word wrap applied. How can I fix this?

0 Likes

#2

I had to edit JavaScript.sublime-settings in /JavaScript and set word wrap there. I imaging the indentation settings are also overwritten by some setting file in that directory

0 Likes

#3

See Indentation Detection in the documentation: sublimetext.com/docs/2/indentation.html

0 Likes