In Dreamweaver I'm used to insert code snippets with my own keyboard short cuts. Now I'm trying to change to Visual Studio Code 1.2.1 but cannot find any way to do this? (I don't like how intellisense works entirely)
I found the Key Bindings json file for changing the behavior, but no command for inserting my own code snippets or macros.
a basic example of what I want to achieve.
select the text "string" & press Ctrl + 1 macro to execute:
insert before string <div>#
insert after string #<div>
result
<div>#string#</div>
{
"key": "ctrl+1",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"snippet": "<div>#${TM_SELECTED_TEXT}#</div>"
}
}
https://code.visualstudio.com/docs/editor/userdefinedsnippets#_assign-keybindings-to-snippets