Overview Version History Q & A Rating & Review
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.
Install
You can install this extension via ext install switchLine
Usage
Setup your config file as described at Extension Settings Section
Open Command Palette and search for Switch Line
extension, then press Enter
.
You will see a selection list, that contains lines data, that you configured.
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
switchLine.matchLineRule
: regexp to recognize lines you want to switch
switchLine.matchDataRule
: regexp to match useful data in line
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