Tuesday, July 29, 2025

VScode Tips & Tricks

 VS Code 




Settings
cmd + shift + p => Command Palette
Cmd+Shift+p => Install Extension


Wrap Tabs
settings => Search for "workbench.editor.wrapTabs" and enable it



Remove
settings => Search for "editor.minimap.enabled" and disable it
"Enable Telemetry"

Themes
Cmd+Shift+p => Product Icon Themes

Window
cmd+n => Open New Tab
ctrl+tab => To switch between Tab
cmd+b => Toggle SideBar
cmd+w Close Current tab
cmd +shift+t Reopen the last close tab
cmd+p open the file from project directory



Navigate
cmd + shift + ] To switch between the open files
cmd + shift + [ To switch between the open files
cmd + shift + o => Go to Symbol in File
ctrl+ ~ => In built terminal
cmp+p :<no> # navigate to that line
option + up (or) down arrow key # move the line up or down
cmd+p search button
cmd+ [ => Indent the line
cmd+ ] => outdent the line
ctrl + d => select the word
cmd + d => select the next occurrence of the word
cmd + shift + l => select all occurrences of the word
cmd+opt+enter => Replace All


Remove Empty lines
cmd+opt+f =>
In the find box type: ^\n choose Regular Expression then replace with: (leave it empty)


cmd+L+delete => Delete the current line
cmd+shift+L => Select all occurrences of the current line
cmd+shift+f => Find in files
cmd+shift+h => Replace in files

Duplicate Lines
Shift+ Alt+Down Arrow => Duplicate the line below
Shift+ Alt+Up Arrow => Duplicate the line above


Single click new tab
settings => Search for "workbench.editor.enablePreview" and disable it

Nesting
settings => Search for "workbench.editor.enablePreviewFromQuickOpen" and disable it

WrapTabs
settings => Search for "workbench.editor.wrapTabs" and enable it


Compare 2 files
code --diff file1 file2

No comments:

Post a Comment