Giter Site home page Giter Site logo

vscode-powerline's Introduction

Powerline for Visual Studio Code

Powerline

This is a port of the popular Powerline Vim theme to Visual Studio Code. I created it because I realized how much I missed Powerline after going back to command line Vim for a bit.

VS Code Powerline consists of two subprojects, each of which is optional:

  1. A custom CSS file for use with the Custom CSS and JS Loader extension that provides the Powerline styling.

  2. An extension that displays the line and column number in Powerline style.

Since this is custom CSS, it should be considered a totally unsupported hack. It will eat your laundry. That said, it's just CSS, so it won't break much. Probably.

This project is designed and tested with the VSCodeVim extension, but it can be used fine without it, though the styling won't be ideal if not in Vim mode (patches welcome to improve the situation).

Installation

  1. Clone the project on GitHub.

  2. Install the Custom CSS and JS Loader extension from the Visual Studio Code Marketplace. Make sure to follow its instructions so that VS Code has permission to patch itself.

  3. Add the following line to your VS Code settings.json, replacing /path/to/vscode-powerline with the full path to the directory you cloned the project to:

"vscode_custom_css.imports": [
    "file:///path/to/vscode-powerline/powerline.css"
],

(Note that the file:/// part is required.)

  1. (Optional) Now build the line and column number extension, if you wish. From the vscode-powerline directory, run:
$ cd powerline-status
$ npm i
$ vsce package
  1. (Optional) To install the line and column number extension, run the "Extensions: Install From VSIX…" command from within Visual Studio Code (via Cmd+Shift+P) and navigate to the .vsix package you built.

  2. Restart Visual Studio Code.

  3. (Optional) To remove the "[Unsupported]" string in the title bar, install the Fix VSCode Checksums extension and follow its instructions.

Themes

VS Code Powerline comes with support for the onedark and Solarized Dark themes. It falls back to the Airline dark theme if neither is in use. If you want to add more or customize the colors in other ways, just edit the CSS variables at the top of powerline.css.

Screenshot

Screenshot

Future work

I'll upload the line and column number indicator to the Marketplace once I've tested it some more.

vscode-powerline's People

Contributors

fingertap avatar pcwalton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

vscode-powerline's Issues

Is this project still active?

Is this extension still in development? I love this feature, as I was a big fan of powerline in vim. Maybe I can help

Not working

Can anyone help me? I pulled the code and added the link but it doesn't seem to work :(
image

Color leaked when items overflowed

First of all, love this "extension"!

I noticed a weird bug that when items overflowed the window, the VIM status color would leak out and swallow the middle item that is being folded up. I recorded a video to make the scenario clear and (hopefully) reproducible to you:

Color-leaking.bug.mov

As you can see, I tried to debug it but CSS is awesome :)

Figure out what to do with recording

Recording changes the status line to something like --NORMAL-- Recording, which is misaligned and not bolded. This is going to be a bit ugly no matter what we do.

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.