Pages: [1]   Go Down
Author Topic: Not replacing Tabs with spaces option.  (Read 1580 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 1
Posts: 38
Turn it off!!!!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If I change the "editor.tabs.expand=true" line to false in preferences.txt, it doesn't make tabs not expand to spaces.  Instead, the tab key does nothing (I.E., can't tell the key was pushed,) and when it auto indents, the indents are expanded to spaces.

I'm running XP SP2.

This is the only problem I have with the Arduino editor, but by itself it's basically enough to make me use an external editor.

I also think that tabs should default to 4 spaces long (in length, not expanded), but that is just me.  Most of you Arduino'ers use a different set of standard program format when writing code.  I've written a lot of C for PICs, so that is my background.  (I also keep forgetting about the C++ features in Arduino.)
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 614
Posts: 49365
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I also think that tabs should default to 4 spaces long (in length, not expanded), but that is just me.
I like 4 spaces, too. But consistent indenting, properly applied, is more important than the amount of indenting actually used.

Considering the fact that the IDE is designed for much smaller monitors than are currently used today, 4 spaces will indent code off the right edge of the screen very quickly.

So, when making this change (as if I believe it will ever happen), the size of the monitor should be looked at when sizing the window. The user changed size of the window should be recorded and reused, too.
Logged

Pages: [1]   Go Up
Jump to: