Coder Social home page Coder Social logo

vscode's Introduction

vscode

An Oh My Zsh plugin to open files in Visual Studio Code.

Requirements

Installation

Manual

  1. Clone this repository somewhere on your machine. This guide will assume ~/.zsh/vscode.
git clone https://github.com/valentinocossar/vscode.git ~/.zsh/vscode
  1. Add the following to your .zshrc:
source ~/.zsh/vscode/vscode.plugin.zsh
  1. Start a new terminal session.

Oh My Zsh

  1. Clone this repository into $ZSH_CUSTOM/plugins (by default ~/.oh-my-zsh/custom/plugins)
git clone https://github.com/valentinocossar/vscode.git $ZSH_CUSTOM/plugins/vscode
  1. Add the plugin to the list of plugins for Oh My Zsh to load:
plugins=(vscode)
  1. Start a new terminal session.

Usage

  • If vs command is called without an argument, launch Visual Studio Code.

  • If vs is passed a directory, cd to it and open it in Visual Studio Code.

  • If vsa is passed a directory, cd to it and open it in the last active Visual Studio Code window.

  • If vs is passed a file, open it in Visual Studio Code.

  • If vsa is passed a file, open it in the last active Visual Studio Code window.

  • If vst command is called, it is equivalent to vs ., opening the current folder in Visual Studio Code.

  • If vsta command is called, it is equivalent to vs -a ., opening the current folder in the last active Visual Studio Code window.

  • If svs command is called, it is like sudo vs, opening the file or folder in Visual Studio Code. Useful for editing system protected files.

  • If svsa command is called, it is like sudo vs -a, opening the file or folder in the last active Visual Studio Code window. Useful for editing system protected files.

vscode's People

Contributors

c0sco avatar valentinocossar 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

Watchers

 avatar  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.