0

I'm trying to add a comment snippet in Visual Studio Code that should add dashes until the end of the column, however depending on the indentation the amount of dashes should be different. The snippet should generate the following:

//--------------------------------------------------
// | <- cursor here

  Indented code 
  //------------------------------------------------
  // | <- Cursor here

Is this possible?

New contributor
Marc is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
  • Select the code and press Ctrl + /. – Biswapriyo May 16 at 5:26
  • That just removes the comments. I.E //------------ becomes -------------- – Marc May 16 at 5:28

Your Answer

Marc is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.