Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@pid
Created October 21, 2013 20:17
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save pid/7090243 to your computer and use it in GitHub Desktop.
Save pid/7090243 to your computer and use it in GitHub Desktop.
Sublime Text keystroke toggle line numbers show/hide
{
"keys": ["ctrl+alt+l"],
"command": "toggle_setting",
"args": {
"setting": "line_numbers"
}
@alancapc
Copy link

Thanks!

@dperrymorrow
Copy link

good stuff!

@divusiulius
Copy link

divusiulius commented Jul 23, 2017

I couldn't get it working in the original version. I know that this should work. So I stared at it and then I noticed that there were three (3) curly brackets. And simply not allowed. Added the forth curly bracket, voila !!!!, worked like a charm!

[

{ "keys": ["ctrl+alt+l"], "command": "toggle_setting",
"args": { "setting": "line_numbers" }},

]

@pixmin-lbi
Copy link

Hi, any way to do it for all tabs in the current window? At the moment it only toggles line numbers in the active tab...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment