Git Product home page Git Product logo

vscode-titlebar-less-macos's Introduction

Titlebar-less VSCode for macOS

Preview

An extension to hide the titlebar on VSCode for macOS, and inline the traffic lights (= window controls).

Installation

Follow the instructions in the Marketplace, or run the following in the command palette:

ext install lehni.vscode-titlebar-less-macos

Alternatively, you can run this command in the command line:

code --install-extension lehni.vscode-titlebar-less-macos

Usage

The extension adds 2 new commands to the command palette:

Titlebar-Less: Enable // Enable titlebar-less mode on macOS (patches core files)
Titlebar-Less: Disable // Disable titlebar-less mode on macOS (restores core files)

After executing either of these commands, you need to fully restart VSCode in order to see the extension's effect. Simply reloading the window is not enough.

If VSCode complains about it being corrupted after the restart, you have two options:

  1. Install the vscode-fix-checksums extension and adjust the internal checksums to prevent this error from being displayed. This will also solve the display of [Unsupported] in titles and menus.

  2. Choose Don't Show Again:

    Don't Show Again

See Disclaimer / A Word of Caution for details.

See Required User Settings, if the title bar doesn't look right after the restart.

Required User Settings

This extension only works with the following User Settings. In order to change them, choose Code > Preferences > Settings in the menu, and add / change these lines:

"window.titleBarStyle": "custom",
"window.nativeTabs": false,

Installing on macOS 10.14 Mojave

Due to security restrictions on macOS 10.14, VSCode needs to run as root in order to be able to apply the patches. To do so, open the Terminal.app and run:

sudo "/Applications/Visual Studio Code.app/Contents/MacOS/Electron"

Or this if you're using VSCode Insiders:

sudo "/Applications/Visual Studio Code - Insiders.app/Contents/MacOS/Electron"

Once you ave applied the patches by executing Titlebar-Less: Enable as root, quit VSCode and start it normally without root privileges again.

Disclaimer / A Word of Caution

This extension modifies files that are part of the core of VSCode, so use it at your own risk.

This extension creates backup files before modifying the core files, and these can be restored at any time using the Titlebar-Less: Disable command.

If anything goes wrong, you can always reinstall VSCode from code.visualstudio.com without loosing any settings or installed extensions.

Updating VSCode / Titlebar-Less

When either VSCode or this extension is updated to a newer version, you can reapply the extension's modifications of the core files simply by running this command again, followed by a restart of the full application:

Titlebar-Less: Enable

Before / After

Before/After

Inspiration

microsoft/vscode#12377

In particular, @orta's work on a similar fork.

License

MIT © Jürg Lehni, 2018

vscode-titlebar-less-macos's People

Contributors

lehni avatar smockle avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.