Sublime Forum

Increase / decrease numbers within selection

#1

Hey everyone!

This does’t exist, does it? Would be useful.

For example, input:
if (i >= 10) { if (i >= 10) { if (i >= 10) { } } }
offset: 10, changeFirst: false

Result:
if (i >= 10) { if (i >= 20) { if (i >= 30) { } } }

Or do I write a plugin at that point?

Best wishes,
Shu

0 Likes

#2

See the “Arithmetic” command from the command palette.

0 Likes

#3

Thanks for the info! This is good! No, great!

0 Likes