Printing a range of numbers


#1

Hi,
If say for example, I select multiple lines in code, where I want to insert numbers, lets say from 1 to 500, with a space of 2, like 1, 3, 5,… and in hexadecimal format then what should I do to achieve that… I know to select multiple lines, I need to hold ctrl+click. But printing numbers seems to be impossible. Is there any shortcut or package?

Thanks
Tahir


#2

Morning @Tahir_Rana,

I’m not aware of a plugin for this but you could accomplish this in a relatively straight forward manner using a Toolbox Userscript and the editor Javascript SDK.

For your use case it sounds like you’ll want to use a combo of the following:

Feel free to ask more questions regarding this.

  • Carey