Insert snippet until end of line in Visual Studio Code

by Marc   Last Updated May 16, 2019 06:01 AM

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?



Related Questions


Updated July 05, 2019 12:01 PM

Updated May 27, 2018 09:01 AM

Updated June 28, 2019 22:01 PM

Updated April 01, 2019 05:01 AM

Updated January 25, 2018 11:01 AM