geddski / macros

macros support for VS Code
MIT License
165 stars 36 forks source link

autocomplete problem with type command #25

Open RamyRais opened 6 years ago

RamyRais commented 6 years ago

So my problem is that when inserting some text using type command, autocomplete seems active and destroy my flow. For exemple: the output of this macros is "something()" i don't want the closing parentheses.

"macros" : {
    "doStuff": [{
        "command": "type", "args": { "text" : "something("}
     }]
}
rthoreau commented 4 years ago

If it can helps someone, I found this trick to avoid my autocomplete problems : "mymacro" : [ {"command": "type", "args": { "text": "' . some_function()" //write the 2 parentheses } }, {"command": "deleteLeft"} //delete the second one ]

RamyRais commented 4 years ago

@rthoreau nice trick, i like it 👍