451

Sublime Textはどのようにして印刷できない文字を表示できますか(スペースとタブに興味があります)?

4

10 に答える 10

683

空白を表示するには、設定は次のとおりです。

// 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であるため、末尾にコンマはありません。

于 2012-04-14T13:29:10.317 に答える
95
于 2012-04-19T08:11:54.293 に答える
17

I use Unicode Character Highlighter, can show whitespaces and some other special characters.

Add this by, Package Control

Install packages, unicode ...

于 2013-08-23T14:18:00.153 に答える
14

If you really only want to see trailing spaces, this ST2 plugin will do the trick: https://github.com/SublimeText/TrailingSpaces

于 2012-10-03T07:38:23.990 に答える
13

If you want to be able to toggle the display of whitespaces on and off, you can install the HighlightWhitespaces plugin

于 2013-01-21T16:48:39.047 に答える
12

Here is an Official tutorial of how to do that!
http://sublimetexttips.com/show-whitespace-sublime-text/

just like this!

enter image description here
enter image description here

Hope help for you!

于 2016-10-13T05:22:47.500 に答える
4

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 :)

于 2016-03-08T20:09:45.123 に答える
3

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.

于 2015-09-22T19:23:06.830 に答える
2

http://sublimetexttips.com/show-whitespace-sublime-text/

  1. open

Ctrl+Shift+P

  1. search

Preferences: Settings –> User

  1. just paste below codes

{
    "draw_white_space": "all",
    "translate_tabs_to_spaces": true
}

于 2017-09-19T01:48:26.290 に答える
1
于 2016-07-18T06:14:50.983 に答える