Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>switchLineNew to Visual Studio Code? Get it now.
switchLine

switchLine

German Volkov

|
335 installs
| (0) | Free
Choose what line to uncommit much faster.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSCode "SwitchLine" Extension

This is VS Code extension. It helps to switch between multiply commented lines of a certain file.

Features

Here you can see what this extension actually does. For example you have many urls from which you can get info about the cars. But you should use only one of them. And you always need to switch between them. So, this extension is a solution!

// All our cars factories 

let url;

url = 'http://cars-managment.com/factory-default';
// url = 'http://cars-managment.com/factory-south';
// url = 'http://cars-managment.com/factory-east';
// url = 'http://cars-managment.com/factory-west';
// url = 'http://cars-managment.com/factory-moon';
// url = 'http://cars-managment.com/factory-mars';

Here is a gif about how it works.

Demo GIF

Install

You can install this extension via ext install switchLine

Usage

  1. Setup your config file as described at Extension Settings Section
  2. Open Command Palette and search for Switch Line extension, then press Enter.
  3. You will see a selection list, that contains lines data, that you configured.
  4. Choose data that you need to turn on and wait for succesfull info message.

Extension Settings

This extension contributes the following settings:

  • switchLine.path: path to your file with commented lines
    • default: /config.js
  • switchLine.matchLineRule: regexp to recognize lines you want to switch
    • default: url = '.+'
  • switchLine.matchDataRule: regexp to match useful data in line
    • default: '.+'

Release Notes

0.1.1

Bug fix patch:

  • correct list of lines on first attempt

0.1.0

Initial release of SwitchLine, contains only basic functionality:

  • setup config file
  • switch between commented lines

Author

  • GitHub
  • Website
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft