4 ms·
If you want to write a new command for vscode then you have to register it in contribution points in the editor which is done in a json file. I don't know if yo
by dmortin 7y ago
If you want to write a new command for vscode then you have to register it in contribution points in the editor which is done in a json file. I don't know if you can do that dynamically and if you can't then you can't create a quick throwaway editing command either.
I very often write few lines of temporary commands if I have to do some mass editing which can be automated.
With vscode I'd have to do it in python or something outside of the editor which is much less convenient than an emacs script which can work on a file as a buffer.