+304
Completed

Add ability to show indentation lines

Metin Amiroff 13 years ago updated by Cees Timmerman 8 years ago 13
Indentation lines/guides make it extremely easy to see code at a glance. Especially when working with languages that depend on indentation, like Python.

See http://www.joeflash.ca/blog/2009/03/indentation-guides-in-flex-builder.html

Answer

Answer
Completed

 This was added in build 2111

+1
I agree! Although, if you select the lines you want to see which are nested, it does display spacing characters. Just show something similar when not selected!
+7
You can show whitespace characters all the time by setting
"draw_white_space": "all"In your user file preferences. This is a little distracting though, and certainly a lot noisier than showing just indentation lines like in the link originally posted.
+2
Just for everyone who haven't noticed yet: http://www.sublimetext.com/forum/viewtopic.php?f=5&t=1621&start=0
Of course this might be much faster when implemented in the core instead of a post processing plugin..

Please fix the link.

+2
Looks like an extra semicolon or something in that link. I've been using this and it works great (but haven't stress-tested it for large files)

http://www.sublimetext.com/forum/viewtopic.php?f=5&t=1621&start=10#p7529
-1
This will be a great addition to Sublime Text2 which is also one of the reason I not buying this.... since notepad++ has this features.. and moreover its free.
...Is this different from pressing F7?
Oops! Wrong thread! Please remove! Sorry!

Go to this file:

Packages/User/Base File.sublime-settings 


Add this line:

"rulers": [0, 4, 8, 12, 16]


Do you see the lines that have appeared are at every 4th character?
If your tab setting is 4 now you have your tab marks.

Change the settings above to match your preferences.

+2

 There's no need for this anymore..


File settings:


"draw_indent_guides": true

+1
Hooray! This has been added in the latest release, and it even highlights the current indent level.

// Set to false to turn off the indentation guides.
    // The color and width of the indent guides may be customized by editing
    // the corresponding .tmTheme file, and specifying the colors "guide",
    // "activeGuide" and "stackGuide"
    "draw_indent_guides": true,
Answer
Completed

 This was added in build 2111

+2

Notepad++ highlights the guides along with the braces, which is still missing in Sublime.