Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 2 - View whitespace characters

How can Sublime Text show non printable characters (I'm interested in SPACEs and TABs)?

like image 756
imkost Avatar asked Apr 14 '12 13:04

imkost


People also ask

How do you show hidden characters in Sublime Text?

In order to do this in Sublime you need to open your preferences file (On OSx that is ⌘+, ) and insert the line "draw_white_space": "all" . By default it is set to "selection" and the other option is for it to be "off".

How do I display tabs in Sublime Text?

In Sublime Text 2, you can use CTRL + SHIFT + P to access quickly to some functionalities. Type tabs and you will find the View: Toggle Tabs functionality.

What characters are whitespace?

Space, tab, line feed (newline), carriage return, form feed, and vertical tab characters are called "white-space characters" because they serve the same purpose as the spaces between words and lines on a printed page — they make reading easier.

How do I see whitespace in Visual Studio?

In Visual Studio for Windows, to display whitespace characters (tabs, spaces, etc) you simply press Ctrl + R, Ctrl + W.


1 Answers

To view whitespace the setting is:

// Set to "none" to turn off drawing white space, "selection" to draw only the // white space within the selection, and "all" to draw all white space "draw_white_space": "selection", 

You can see it if you go into Preferences->Settings Default. If you edit your user settings (Preferences->Settings - User) and add the line as per below, you should get what you want:

{     "color_scheme": "Packages/Color Scheme - Default/Slush & Poppies.tmTheme",     "font_size": 10,     "draw_white_space": "all" } 

Remember the settings are JSON so no trailing commas.

like image 175
Andrew Barrett Avatar answered Sep 27 '22 22:09

Andrew Barrett