Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get selected text into a variable VSCode

Is there an easy way to get selected text into a variable similar to native variable ${lineNumber} which is the current selected line number? It would be very useful as a parameter for link to online help etc. Thank you.

like image 660
Pavel Vicha Avatar asked May 25 '17 08:05

Pavel Vicha


1 Answers

It will be $(selectedText} once this vscode github code is released.

Edit: It's actually available now.

like image 62
Alexander Calandra Avatar answered Oct 15 '22 03:10

Alexander Calandra