Skip to content

Instantly share code, notes, and snippets.

@Akiyamka
Last active December 4, 2019 16:28
Show Gist options
  • Save Akiyamka/1517573e7aa298ad965dfe54f3418e98 to your computer and use it in GitHub Desktop.
Save Akiyamka/1517573e7aa298ad965dfe54f3418e98 to your computer and use it in GitHub Desktop.
Inline comment for vscode
/**
* Author: @anontheanon
* Telegram: https://t.me/anontheanon
**/
// Add inline comment /* */
{
"key": "ctrl+/",
"command": "editor.action.insertSnippet", // ctrl+oem_102 for back slash
"when": "editorHasSelection",
"args": {
"snippet": "/*${TM_SELECTED_TEXT}*/"
}
}
// Remove inline comment /* */
{
"key": "ctrl+shift+oem_102",
"command": "editor.action.insertSnippet",
"when": "editorHasSelection",
"args": {
"snippet": "${TM_SELECTED_TEXT/[\\/][\\*](.*)[\\*][\\/]/$1/s}"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment