Skip to content

Instantly share code, notes, and snippets.

@Shaun289
Last active November 21, 2024 13:38
Show Gist options
  • Save Shaun289/d1f6f351caa105c02582234d213153a9 to your computer and use it in GitHub Desktop.
Save Shaun289/d1f6f351caa105c02582234d213153a9 to your computer and use it in GitHub Desktop.
vscode apply insertSnippet

Make advanced vscode shortcut

    {
        "key": "cmd+shift+f7",
        "command": "editor.action.insertSnippet",
        "args": {
            "snippet": "<< \" ${TM_SELECTED_TEXT}:\" << ${TM_SELECTED_TEXT} "
        },
        "when": "editorTextFocus && !editorReadonly"
    },   
  • before
std::cout
aaa
bbbcccdd
ccceebags
<< std::endl;
  • after
std::cout
<< " aaa:" << aaa 
<< " bbbcccdd:" << bbbcccdd 
<< " ccceebags:" << ccceebags 
<< std::endl;

화면 기록 2024-11-21 오후 10 28 47

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