Aug 24, 2024
My Favorite VS Code Shortcuts
My Favorite VS Code Shortcuts
Here are some simple VS Code shortcuts I use all the time to speed up my work:
1. Open Files Fast
Find and open files quickly:
Cmd + P (Mac) / Ctrl + P (Windows)
2. Toggle Terminal
Show or hide the terminal easily:
Ctrl + `
3. Edit Multiple Lines
Add multiple cursors to edit several places at once:
Alt + Click
4. Comment Code
Add or remove comments from code:
Cmd + / (Mac) / Ctrl + / (Windows)
5. Go to Line
Jump to a specific line in the file:
Cmd + G (Mac) / Ctrl + G (Windows)
6. Go to Definition
Jump to where a function or variable is defined:
F12
7. Rename Symbol
Change the name of a variable or function everywhere it appears:
F2
8. Open Command Palette
Use commands quickly by opening the command palette:
Cmd + Shift + P (Mac) / Ctrl + Shift + P (Windows)
9. Duplicate Line
Copy the current line and paste it below:
Shift + Option + Down (Mac) / Shift + Alt + Down (Windows)
10. Move Line Up/Down
Move the line up or down:
Option + Up/Down (Mac) / Alt + Up/Down (Windows)
11. Format Code
Automatically format your code:
Shift + Option + F (Mac) / Shift + Alt + F (Windows)
12. Open/Close Sidebar
Show or hide the sidebar panel:
Cmd + B (Mac) / Ctrl + B (Windows)
13. Find and Replace
Search and replace text in the file:
Cmd + F / Cmd + Shift + F (Mac)
Ctrl + F / Ctrl + Shift + F (Windows)
14. Split Editor
Open two editor views side by side:
Cmd + \ (Mac) / Ctrl + \ (Windows)
OTHER POSTS
Arduino Project 2: Controlling an LED with a Button
This project demonstrates how to control an LED using a push button with an Arduino UNO. The button will act as the input, and the LED will serve as the output. By pressing the button, we will turn the LED on, and by releasing it, the LED will turn off. This experiment introduces the basic concepts of input and output control using Arduino components.
Read more →Arduino Project 1: Button State Detection
In this beginner-level Arduino project, we will utilize a simple push button to interact with the Arduino UNO board. The goal is to detect whether the button is pressed or not, with the state displayed on the Serial Monitor. This project serves as an introduction to reading digital input signals using an Arduino and understanding the basic concepts of input-output mechanisms in electronics.
Read more →How to Build and Publish NPM Package step-by-step.
Building and publishing an NPM package is a great way to share your code with others. Here's a step-by-step guide on how to create, build, and publish your package.
Read more →How to Publish Package to NPM – Step by Step
Publishing your package to NPM (Node Package Manager) allows you to share your code with the developer community. It’s a simple process that can take your open-source contribution to the next level. This guide will walk you through publishing your first NPM package.
Read more →