Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VScode shortcut for comment

Using Vscode in Laravel ..

when selecting a part of line and press ctrl + / it comment the whole line with {{-- --}}

1- I don't want to comment the whole line , just the selected part

2- I want to use <!-- --> instead of {{-- --}}

like image 425
John Deck Avatar asked Jan 23 '19 06:01

John Deck


2 Answers

For

1- I don't want to comment the whole line , just the selected part.

This keyboard shortcut will work for you.

Shift+Alt+A

like image 142
gongsun Avatar answered Oct 16 '22 08:10

gongsun


Add a Comment ctrl + /

Moving a lineup or down alt + up arrow/down arrow

Cut an entire line ctrl + x

Copy an entire line ctrl + c

Quickly open a file ctrl + p

Move to the desired line number ctrl + g

Move to any file within the project ctrl + e

Hide/Show Sidebar ctrl + b

Select the current line and move the cursor to the next line ctrl + l

Show/Hide the terminal ctrl + j

Select and Edit multiple lines alt + cursor drag middle mouse key

Search any word ctrl + f

Search & Replace any word ctrl + h

See previous selections/cursor movements ctrl + u

Quickly close a file ctrl + w

Switch between sidebar services ctrl + q

Open the current folder in the browser alt + l + o

like image 2
aryangulati Avatar answered Oct 16 '22 09:10

aryangulati