Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please type your username.

Please type your E-Mail.

Please choose an appropriate title for the post.

Please choose the appropriate section so your post can be easily searched.

Please choose suitable Keywords Ex: post, video.

Browse

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Logo Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Logo

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Navigation

  • Home
  • About Us
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • About Us
  • Contact Us
Home/ Questions/Q 2142

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise Latest Questions

Author
  • 61k
Author
Asked: November 26, 20242024-11-26T02:40:08+00:00 2024-11-26T02:40:08+00:00

VS Code Tips And Tricks For Every Developer

  • 61k

Yeah i know, this might probably be the millionth article you have come across with a title like this and you have reason to not read it and thats completely fine.

Well if you are here and still reading!. Let's gets started quickly🚀🚀.

1. Move the sidebar to the right in VS Code.

Since most of us don't write more than 150 characters of code in a single line . The space to the right of the editor always remains empty and it kind of wastes space. So why not move the sidebar to the right and make use of that valuable screen real-estate. You can do that easily by right clicking on the sidebar and then select the option to move sidebar to the right.Now you can focus on your code with your sidebar out of the way. I know this is opinionated but why not give it a try . I am sure you will get used to it.

Move Sidebar to the right

2. Toggling the sidebar.

As we are on the topic of sidebar, i believe most of use keep toggling the sidebar using our mouse for more editor space and we developers collective waste a lot of time. A simple shortcut by vs code allows us to toggle the sidebar in a much faster way. Using your keyboard press cmd + B or ctrl+B if you are on windows to toggle the sidebar. Keep practicing and you will see how useful this shortcut is.

Toggling sidebar using **cmd+B**

3. Get a full tab worth of terminal in VS Code.

By default you can toggle the terminal in vs code using the *ctrl + ~ * operation and now a tiny terminal appears at the bottom of your code editor. Its always nice to have your code and terminal accessible in the same screen but this again eats up your editor space. You can overcome this by dragging the terminal to the top of your workspace where the other file tabs exist and voila you have a full screen terminal right into vs code along with all other file tabs and full screen space as well.

Making the terminal occupy a full tab in vs code

4. Always open a new file in a new tab.

By default in vs code when you open a file it opens in a preview mode and then when you open another file the existing file gets replaced by the new file that you open. Only after you double click on a file it comes out of preview mode and stays permanently open in your editor until you close it. Personally i find this counter productive. i want all my files to open and be side by side to each other . Again to achieve this its a simple toggle in vs code.

  1. Go to settings.
  2. Click on Workbench.
  3. Click on Editor Management.
  4. Scroll down and untick the enable preview option
  5. Thats it . Now see the magic happen.

Default behaviour where every file opens in the same tab in preview mode and not in a new tab

After Toggling the setting and now every file opens in a new window 🎉🎉🎉

After Toggling the setting and now every file opens in a new window

5. Right Click and open folder with vs code (Mac users only).

Coming from windows we had this option where we right click on a particular folder and we had that option where we could open the folder in vs code. This came in handy.

Now for mac users having this option is quite tricky but doable.Here are the steps to achieve it.

  • Open the automator app in you mac os system. This app is installed by default. You can search for the app using command + spacebar to open spotlight.

  • After opening the automator click on quickaction in the popup and press the choose button.

  • In the dropdown labeled “Workflow receives current” choose files or folders from the dropdown and choose finder in the consequent dropdown.

  • In the search bar to the left type in “open” and you will find an option called “Open in finder Items”. Double click on the option.

  • After double clicking on the option. Choose Open with as Visual studio code from the dropdown.
    if vs code is not available in the default dropdown options click on others and then select visual studio code.

  • After that use save and save it as “Open with Visual Studio Code”.

  • Thats it . It's done. Now right click on any folder and you will find the option under quick actions.

Step 1

Step 2

Step 3

Step 4

Step 5

Final Output

Thank you for reading this post till the end . If you learnt something please do share it with others.

beginnersproductivityvscodewebdev
  • 0 0 Answers
  • 8 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question

Stats

  • Questions 4k
  • Answers 0
  • Best Answers 0
  • Users 2k
  • Popular
  • Answers
  • Author

    ES6 - A beginners guide - Template Literals

    • 0 Answers
  • Author

    Understanding Higher Order Functions in JavaScript.

    • 0 Answers
  • Author

    Build a custom video chat app with Daily and Vue.js

    • 0 Answers

Top Members

Samantha Carter

Samantha Carter

  • 0 Questions
  • 20 Points
Begginer
Ella Lewis

Ella Lewis

  • 0 Questions
  • 20 Points
Begginer
Isaac Anderson

Isaac Anderson

  • 0 Questions
  • 20 Points
Begginer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help

Footer

Querify Question Shop: Explore Expert Solutions and Unique Q&A Merchandise

Querify Question Shop: Explore, ask, and connect. Join our vibrant Q&A community today!

About Us

  • About Us
  • Contact Us
  • All Users

Legal Stuff

  • Terms of Use
  • Privacy Policy
  • Cookie Policy

Help

  • Knowledge Base
  • Support

Follow

© 2022 Querify Question. All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.