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?

2
  • Select the code and press Ctrl + /.
    – Biswapriyo
    Commented May 16, 2019 at 5:26
  • That just removes the comments. I.E //------------ becomes --------------
    – Marc
    Commented May 16, 2019 at 5:28

0

You must log in to answer this question.

Browse other questions tagged .