Overview Q & A Rating & Review
VSCode "SwitchLine" Extension
This is VS Code extension. It helps to switch between multiply commented lines of a certain file.
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
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.
You can install this extension via
ext install switchLine
Setup your config file as described at
Extension Settings Section Open Command Palette and search for
Switch Line extension, then press
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.
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
Bug fix patch:
correct list of lines on first attempt
Initial release of SwitchLine, contains only basic functionality:
setup config file
switch between commented lines