column editor with negative numbers
-
Good day,
I have been using Notepad++ for programming for a long time and now I need to insert a sequence of numbers in a column.
For me the “column editing” function is very useful, but the function does not accept negative numbers.
I should insert a sequence of numbers in the column starting from 512 and decreasing with a step of 8
I had thought of using “Edit->column editor” and setting “start number” to 512 with an increment of -8 to decrease the number to zero, but unfortunately Notepad++ only accepts numbers.How can I automatically create a column of numbers in Notepad++ that starts with 512 and decreases in steps of 8 to zero?
example:
512
504
496
488
…Thanks for any help
-
I suppose you could generate them as positive numbers and then sort then as numbers in descending fashion?
-
@Alan-Kilborn said in column editor with negative numbers:
I suppose you could generate them as positive numbers and then sort then as numbers in descending fashion?
It could be done, but I would have to move each number manually…it’s a tedious job…I was hoping to do it automatically
-
@Alus said in column editor with negative numbers:
but I would have to move each number manually…it’s a tedious job
- Column Editor to generate 0 to 512 by steps of 4
- Select those 129 lines (you can skip the select if those are the only 129 lines in the file)
- Edit > Line Operations > Sort Lines As Integers Descending
How is that “mov[ing] each number manually”? It’s literally using the sort feature in notepad++ to order the 129 integers automatically with a single menu action.
-
@PeterJones
works!!
I didn’t know this function … Beautiful
notepad++ never ceases to amaze me :DHowever, when he reverses the numbers, he also reverses the unselected text.
I had to build the numbers in an empty area and then copy everything where I had the text to avoid the problemProblem solved, thanks your help was invaluable
-
@Alus said in column editor with negative numbers:
when he reverses the numbers, he also reverses the unselected text.
I had to build the numbers in an empty areaYou did not have to do this if you would have done Peter’s step 2.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login