Login  Register

Re: Is there a text-editor trick to write several identical lines of code while incrementing the numbers on each line ?

Posted by petafunk on May 09, 2020; 10:59am
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/Is-there-a-text-editor-trick-to-write-several-identical-lines-of-code-while-incrementing-the-numbers-tp4034607p4034614.html

Sorry, I was confusing with another feature of ST. I was thinking of "Replace All", which you can restrict to part of the text. So I Replace All the 0s on the first line, then the second line etc. with the incremented number. That's only interesting if there's 3+ numbers to replace per line.