Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

in VS Code there is an extension "Increment Selection" to increment numbers in the code. Does it exist for Visual Studio Community too?

Sometimes I have code where I have to insert consecutive values. This is a problem with big files. First I make them all the same, after which I increase the value 1 by 1.. Such as:

<div>a1</div>
<div>a1</div>
<div>a1</div>
<div>a1</div>
<div>a1</div>
<div>a1</div>`

becomes:

<div>a1</div>
<div>a2</div>
<div>a3</div>
<div>a4</div>
<div>a5</div>
<div>a6</div>
like image 394
backnext Avatar asked May 20 '19 17:05

backnext


People also ask

Do VS Code extensions work with Visual Studio?

Increase the power of Visual Studio Code through Extensions The features that Visual Studio Code includes out-of-the-box are just the start. VS Code extensions let you add languages, debuggers, and tools to your installation to support your development workflow.

How do you use an extension in VS Code?

Find extensions to install using the Extensions view. Install an extension from the VS Code Extension Marketplace. See what features are added via the Features Contributions tab or Command Palette (Ctrl+Shift+P). See recommendations for other extensions.

How many extensions are there in VS Code?

The thing that makes VS Code so popular is the number of extensions available in the Marketplace. With over 30,000 extensions in circulation, the options feel almost limitless – and overwhelming at the same time.


3 Answers

Found sort of an answer by installing VS-Code; install "Increment Selection" and reload file in VS-Community.

like image 57
backnext Avatar answered Sep 20 '22 04:09

backnext


Check out the Incrementor plugin, it works on various cases.

like image 30
Felix Avatar answered Sep 19 '22 04:09

Felix


Please try out this,

div{a$}*6

It will work by 100 percent.

like image 35
Ali Tasawar Avatar answered Sep 20 '22 04:09

Ali Tasawar