Optimizing VS Code for a Cozy and Productive Workspace
Discover how to transform your VS Code environment into a highly focused and distraction-free workspace. This guide outlines key layout adjustments, profile creation, and clever settings to enhance productivity and comfort during long coding sessions.

The default VS Code layout, while flexible, often presents a cluttered interface that can detract from focused work. With numerous UI elements and the increasing integration of tools like Copilot Chat, the primary editor area can feel constrained, leading to unnecessary distractions. This article outlines a comprehensive setup designed to create a clean, comfortable, and optimized environment for extended coding sessions.

As illustrated above, the default layout with Copilot Chat open significantly limits the space available for code. I have sought a layout that minimizes distractions without sacrificing functionality—a simple, comfortable, and optimized environment for long sessions. This article details the configuration I developed, centered around a "Productivity" profile with key layout changes: moving the sidebar to the right, positioning the Activity Bar at the top, centering Quick Input, hiding the Command Center, automatic theme switching based on daylight, improved cursor visibility, and a small bonus feature for added enjoyment. These adjustments are subtle but effectively transform VS Code into a focused, cozy environment, prioritizing code space over UI elements.
Creating a Dedicated “Productivity” Profile
VS Code profiles are invaluable for managing distinct workflows. They allow you to create isolated setups, preventing extension installations or layout changes for one project from affecting others. A dedicated "Productivity" profile ensures your focused environment remains clean and consistent. I primarily use this profile for work, reverting to the Default profile for training sessions to avoid confusing participants.
To set up a new profile:
- Open the Command Palette.
- Run
Profiles: Create Profile. - Choose
Empty. - Name it
Productivity. - Customize settings specifically for this profile.
Alternatively, click the
Gearicon (bottom-left) and select "Profiles" from the menu.

Moving the Primary Sidebar to the Right
The default left-aligned sidebar can disrupt natural reading flow, with the file tree constantly pulling attention away from the editor. Furthermore, closing the sidebar causes the code to shift, which can be jarring. By moving the sidebar to the right, the editor remains centered, making the coding area the immediate focal point and creating a more balanced, less cluttered layout.
"workbench.sideBar.location": "right"
This can also be achieved by right-clicking the sidebar and selecting "Move Primary Sidebar Right".

Activity Bar at the Top
The Activity Bar is a highly visible component. Placing it on the left or right, alongside the primary sidebar, creates unnecessary vertical clutter. Moving it to the top utilizes horizontal space, preserving valuable vertical screen real estate for the editor.
"workbench.activityBar.location": "top"
This setting can also be changed by clicking the top of the sidebar and choosing "Top" from the "Activity Bar Position" menu.

This adjustment complements the right-aligned sidebar, contributing to a cleaner overall layout.
Centering Quick Input for Enhanced Focus
By default, the Command Palette and file switcher appear at the top, requiring a constant shift of eye focus. Centering Quick Input keeps these essential interactions within your immediate field of view, significantly enhancing focus, especially for keyboard-heavy workflows.
"workbench.quickInput.location": "center"
Hiding the Command Center
For users who frequently employ keyboard shortcuts and the centered Quick Input, the Command Center at the top becomes redundant. Hiding it reduces UI noise without sacrificing functionality, keeping attention firmly on the code.
"window.commandCenter": false
Optimizing Menu Bar Visibility
The Menu Bar is often used infrequently. By setting its visibility to "compact", you can reclaim screen space and reduce visual distraction, repositioning it above the Activity Bar.
"window.menuBarVisibility": "compact"
This setting can be adjusted via the "Customize Layout" option in the top-right corner of the VS Code window, where you can change the "Visibility of the Menu Bar".

This optimization not only saves a row but also minimizes menu-related visual interruptions.
Automatic Theme Switching with PowerToys LightSwitch
Integrating with PowerToys LightSwitch, VS Code can automatically adjust its theme based on the time of day (sunrise and sunset). This ensures a comfortable visual experience without manual intervention.
"workbench.preferredDarkColorTheme": "JetBrains Rider Dark Theme",
"workbench.preferredLightColorTheme": "Default Light+",
"window.autoDetectColorScheme": true
The "JetBrains Rider Dark Theme" is a personal preference, chosen for consistency when transitioning between different IDEs. This feature maintains a comfortable editor theme throughout the day.
Improving Cursor Visibility with “Expand” Blinking
The default cursor blink style can be subtle and easily lost in a dense code file. The "expand" blinking style offers improved visibility without being overly distracting, a small but surprisingly effective tweak for better focus.
"editor.cursorBlinking": "expand"
Bonus: A Bit of Fun with VS Code Pets
A truly cozy workspace should also be enjoyable. The VS Code Pets extension adds a small, animated companion to your workspace. This optional addition provides a touch of charm and company during long coding sessions without compromising focus.

It's a small detail that can make the development environment feel more personal and welcoming.
Final Thoughts on a Focused Workspace
Creating a cozy and productive development environment isn't about accumulating more tools, but rather about meticulously removing friction and maximizing focus. By systematically adjusting VS Code's layout and settings, you can reclaim valuable screen space, minimize visual distractions, and craft an editor experience purpose-built for deep, uninterrupted work.
The result of these changes is a significantly cleaner and more intentional workspace, as demonstrated below.

For those interested in exploring these settings further or applying them directly, a comprehensive repository containing the author's complete Windows 11 and tool configurations, including VS Code settings, is available: kasuken/Windows11-Setup. This repository aims to provide an automated, customizable setup for Windows 11, encompassing system tweaks, package installations, and pre-configured settings for Windows Terminal and VS Code to help maintain a consistent, portable development environment.
Feel free to adapt these suggestions or share your own customized workspace. Every developer ultimately defines their unique "cozy" environment.