Home Download Buy Blog Forum Support

Reindent uses two spaces despite different settings

Reindent uses two spaces despite different settings

Postby borekb on Wed Mar 14, 2012 4:14 pm

Hi, I'm trying to reindent an XML file and sublime text inserts two spaces in spite of these settings:

Code: Select all
"tab_size": 4,
"translate_tabs_to_spaces": false,


Are there other settings that influence the reindent command?
borekb
 
Posts: 21
Joined: Wed Mar 14, 2012 4:11 pm

Re: Reindent uses two spaces despite different settings

Postby vitaLee on Wed Mar 14, 2012 5:00 pm

are you sure you're not overwriting this setting in your user settings or syntax specific settings?
where are you setting this?
vitaLee
 
Posts: 150
Joined: Tue Dec 27, 2011 11:10 pm

Re: Reindent uses two spaces despite different settings

Postby jps on Wed Mar 14, 2012 11:23 pm

It's likely indentation detection - http://www.sublimetext.com/docs/2/indentation.html
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Reindent uses two spaces despite different settings

Postby borekb on Wed May 09, 2012 9:32 pm

Yes it's probably that detection.

Sorry for not checking your answers earlier but I didn't receive any email notification - do they work on this forum? I've checked my profile page and it seems that email notification should be enabled by default (sorry for OT).
borekb
 
Posts: 21
Joined: Wed Mar 14, 2012 4:11 pm


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot], Yahoo [Bot] and 13 guests