Sublime Textはどのようにして印刷できない文字を表示できますか(スペースとタブに興味があります)?
10 に答える
空白を表示するには、設定は次のとおりです。
// 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",
[設定]->[デフォルトの設定]に移動すると表示されます。ユーザー設定を編集し([設定]-> [設定]-[ユーザー])、以下のように行を追加すると、必要なものが得られるはずです。
{
"color_scheme": "Packages/Color Scheme - Default/Slush & Poppies.tmTheme",
"font_size": 10,
"draw_white_space": "all"
}
設定はJSONであるため、末尾にコンマはありません。
I use Unicode Character Highlighter
, can show whitespaces and some other special characters.
Add this by, Package Control
Install packages, unicode ...
If you really only want to see trailing spaces, this ST2 plugin will do the trick: https://github.com/SublimeText/TrailingSpaces
If you want to be able to toggle the display of whitespaces on and off, you can install the HighlightWhitespaces plugin
Here is an Official tutorial of how to do that!
http://sublimetexttips.com/show-whitespace-sublime-text/
just like this!
Hope help for you!
I know this is an old thread, but I like my own plugin that can cycle through whitespace modes (none, selection, and all) via a single shortcut. It also provides menu items under a View | Whitespace menu.
Hopefully people will find this useful - it is used by a lot of people :)
A "quick and dirty" way is to use the find function and activate regular expressions.
Then just search for : \s for highlighting spaces \t for tabs \n for new-lines etc.
http://sublimetexttips.com/show-whitespace-sublime-text/
- open
Ctrl+Shift+P
- search
Preferences: Settings –> User
- just paste below codes
{
"draw_white_space": "all",
"translate_tabs_to_spaces": true
}