VIM & Visual Studio Code Tips & Tricks (With Video / GIF)

muhajirdev

Muhammad Muhajir

Posted on June 30, 2019

VIM & Visual Studio Code Tips & Tricks (With Video / GIF)

This post is going to be a collection of VIM And Visual Studio Code tips that I use daily. And it will be updated frequently. So stay tuned. You can follow me here or on twitter @muhajirdev if you want. I'd really really love to hear your feedback here

Installed Extenstion in Visual Studio Code:

Delete In Tag

dit-2.gif

Delete Surrounding Tag

dst-2.gif

Update June 30th, 2019

Change single quote to double quote

single-quote-to-double-quote.gif

Update July 4th, 2019

Change Tag with Emmet

Note that you need to set the keyboard shortcut first. Press cmd+shift+p Then write Preferences: Open Keyboard Shortcuts (JSON). And add the following



[
...
 {
    "key": "shift+cmd+n",
    "command": "editor.emmet.action.updateTag",
    "when": "editorTextFocus"
  },
...
]


Enter fullscreen mode Exit fullscreen mode

My full keyboard shortcuts can be seen on my github dotfiles

change-tag.gif

Update July 11th, 2019

Go to matching tag with Emmet

Similar to tips above. I use cmd+m as the shortcut here. You can check the keyboard shortcut file on my github dotfiles.

matching tag.gif

Copy And Paste with VIM

copy-paste.gif

Update

I have created VSCode.xyz as vscode tips and tricks portal. Check it out.

This post will be updated with more tips and tricks. Stay tuned.

Like and share if you found it useful.

If you have additional tips. You can put it on the comment below. I might can include it too in this post :)

💖 💪 🙅 🚩
muhajirdev
Muhammad Muhajir

Posted on June 30, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related