Shortcut for Vs code


Shortcuts for VS code

Command palette : (Windows : Ctrl+shift+P , IOs : Cmd+shift+P)

Command palette is is one of the most useful tools, it gives you popup of shortcut for doing various different things.

Move line up and down : (Windows : Alt+up/down , IOs : opt+up/down)

This command I have used a lot , you can move lines up and down. You can select multiple lines and do the same all of them.

Control Sidebar : (Windows : Ctrl+B , IOs : Cmd+B)

If you are working on small screens and sometimes you think that you think that you might need more space then you can toggle off the sidebar.

Split View for editing : (Windows : Ctrl +\ , IOs : Cmd+\)

You can split the view for side-by-side editing in Vs code.

Copy lines up or down : (Windows : Alt+shift+Up/down , IOs : opt+shift+Up/down)

Sometimes copying and pasting can be tedious , you can just use this command to copy the same lines up or down

Search in a file : (Windows : Ctrl+G , IOs : Cmd+G)

If you want to search for a word or something and navigate to that line then you can use this command and you can enter the word. It is really helpful.

Multiple cursors : (Windows : Ctrl+Alt+Up/down , IOs : Cmd+opt+Up/down)

This is really useful commands if you want to make the same changes at multiple places at the same time.

Comments lines : (Windows : Ctrl+K, Ctrl+C , IOs : Cmd+K, Cmd+C)

A basic one , you can comment on the selected lines the codes by this comment.

Code formatting : (Windows : Ctrl+K, Ctrl+F , IOs Cmd+K,Cmd+F)

This Commands can help you format your code make it more readable.

Code folding : (Windows : Ctrl+shift+[/] , IOs : Cmd+shift+[/])

This command can help you format your code and make it more readable.

Undo Cursor position : (Windows : Ctrl+U , IOs : cmd+U)

Return you are cursor to the previous location in the file. Can be really helpful while debugging and moving in large files.

Select the entire line : Windows : Ctrl+shift+left/right , IOs : Cmd+shift+left/right)

With the help of this command , you can select an entire line. 

Comments

Popular Posts