Home > Software engineering >  VS Code insert predefined characters at the end of current line
VS Code insert predefined characters at the end of current line

Time:02-08

I would like to assign a keyboard shortcut which-

  • puts the cursor at the end of current line
  • and then, insert ->

I googled a lot. But not found any satisfactory solution.

Any idea ?

CodePudding user response:

If your cursor doesn't start at the end of the line you will need to use a macro extension to run two commands. Using type an arrow at end of line

  •  Tags:  
  • Related