Discussion
· Apr 18

Agree or Disagree? : change the comment delimiters in VS code extension

In vscode objectscript extension, when you push "Ctrl + Slash" in the editor window, the comment delimiter "#;" is inserted. This feature helps me a lot to write comments in sources. But currently it does not have any options to change "#;" to other characters.



Some customers say "we prefer another comment style like //, so want // be put into the source in stead of #; when we push Ctrl + Slash". It makes sense to me. 

I put a new request on Github "[Request] want to change the comment style from "#;" which is inserted by "Ctrl + Slash". 
What do you think? Agree? Disagree?  If you support my idea, please leave any comments here or Github directly 😄


As workaround, you can edit C:\Users\<username>\AppData\Roaming\Code\User\keybindings.json and insert this block there. Then, when you put "Ctrl + Slash" in the editor, // will be inserted in the source. Happy coding!

   {
     "key": "ctrl+/",
     "command": "type",
     "args": { "text": "//" },
     "when": "editorTextFocus"
   }
Discussion (3)1
Log in or sign up to continue