Show / Hide meta characters

0

How would I make a click to change the display of the meta characters in the sublime?

    
asked by anonymous 01.03.2016 / 17:41

1 answer

0

Using a answer I found on the internet through a plugin:

Step 1:

Tools->New Plugin...

Paste the following code:

import sublime, sublime_plugin

class ToggleWhiteSpaceCommand(sublime_plugin.ApplicationCommand):
    def run(self):
        settings = sublime.load_settings("Preferences.sublime-settings")
        white_space = "selection" if settings.get("draw_white_space", "selection") != "selection" else "all"
        settings.set("draw_white_space", white_space)
        sublime.save_settings("Preferences.sublime-settings")

Save as toggle_white_space.py . (It may be another name, but it will influence step 2).

Step 2:

Preferences->Key Bindings - User

Add a line with

{ "keys": ["ctrl+shift+'"], "command": "toggle_white_space" },
            ^ Keys a serem precionadas  ^ Nome do arquivo a ser executado
              para ativar o comando
    
01.03.2016 / 17:43