PDA

View Full Version : Make Fiddle always indent with spaces, not tabs (jslint complains)



ccg
19 Feb 2014, 1:54 PM
Is there a way to make the code editor in Fiddle always insert spaces instead of tabs when indenting code? Is this somehow browser specific? I'm using the latest Google Chrome on Mac OS X 10.9.

I've been working with Sencha Fiddle for a couple hours today, and it seems to switch randomly between spaces and tabs, sometimes in the same line. I haven't yet figured out what the pattern is.

Besides being kind of ugly, it means that as soon as you start writing code, if you switch to the JSLint tab and run JSLint, you get tons of messages like `(error) - line 12 - Use spaces, not tabs.`, and they get in the way of seeing more serious errors.

mitchellsimoens
21 Feb 2014, 1:11 PM
This is CodeMirror handling it (and kind of crappy). We are actually looking to switch to Ace editor which I've been working with on another project and have been liking it much better.