DEV Community

Cover image for VSCode Tip 1: Keeping the Primary Sidebar to the Right
Akshay Joshi
Akshay Joshi

Posted on

VSCode Tip 1: Keeping the Primary Sidebar to the Right

Why Move the Sidebar to the Right?

  • Enhanced Focus on Code: Placing the primary sidebar on the right allows you to start your code from the very left edge of the screen. This setup can help reduce eye movement, making it easier to focus on your code.
  • Decluttered Workspace: Moving the sidebar to the right keeps the left side of your screen clear, which can make your workspace feel less cluttered and more organized.
  • Better Use of Wide Screens: If you have a widescreen monitor, moving the sidebar to the right can help utilize the extra horizontal space more effectively.

How to Move the Sidebar to the Right

  1. Open Command Palette:

    • Press Ctrl + Shift + P to open the Command Palette.
  2. Toggle Sidebar Position:

    • Type "View: Toggle Primary Side Bar Position" and select the option.
    • This will instantly move your sidebar from the left to the right side of the screen.

Additional Perks of Keeping the Sidebar on the Right

  • Consistent Code Alignment: With the sidebar on the right, the left edge of your code remains consistently aligned, which can improve readability and reduce the time spent adjusting your view.
  • Access Tools Without Obstructing Code: Access tools like the Explorer, Source Control, and Extensions without obstructing your view of the code, as these tools will now appear on the right side.
  • Improved Workflow for Right-Handed Users: If you're right-handed, accessing the sidebar on the right might feel more natural and ergonomic, allowing you to interact with the sidebar and your mouse simultaneously with ease.

How to Keep Sidebar Tools Handy

  1. Use Command Palette:

    • Frequently used tools can be accessed via the Command Palette (Ctrl + Shift + P), minimizing the need to open the sidebar altogether.
  2. Customize Keyboard Shortcuts:

    • Assign shortcuts to commonly used commands and tools to access them quickly without navigating through the sidebar.
  3. Minimize Sidebar:

    • You can keep the sidebar minimized when not in use and quickly toggle it with Ctrl + B. This keeps your workspace clean while still having easy access when needed.

By keeping your primary sidebar on the right, you can maintain a clutter-free environment and focus more on your code. This small adjustment can make a significant difference in your overall coding experience. Happy Coding!!!

Top comments (0)