Skip to content

Instantly share code, notes, and snippets.

@yuanqing
Last active March 28, 2023 18:10
Show Gist options
  • Star 15 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuanqing/87bceacedde4dbd96fab to your computer and use it in GitHub Desktop.
Save yuanqing/87bceacedde4dbd96fab to your computer and use it in GitHub Desktop.
Sublime Text: Wrap Selection in Backticks
{ "keys": ["`"], "command": "insert_snippet", "args": {"contents": "`${0:$SELECTION}`"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
}
@philippotto
Copy link

Awesome, thank you!

@tommylees112
Copy link

where does this get pasted to? The sublime preferences file?

@htchaan
Copy link

htchaan commented Mar 19, 2019

where does this get pasted to? The sublime preferences file?

Preferences > Key Bindings

@nk9
Copy link

nk9 commented Jun 22, 2020

Works great on ST3 here, thanks a bunch.

@ruolis
Copy link

ruolis commented Sep 15, 2020

works on st3
thanks 💯

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