18

I would like to navigate to position in text file.

Not line number, but character position. Absolute character position from the beginning of file.

How to do this in Notepad++?

Any other plain text editor is ok. I am editing JSON file.

Dims
  • 13,414

2 Answers2

25

There's an 'Offset' option you can use to directly go to the character you want.

Select the Search -> Go to... menu option (or press Ctrl+G) and change the radio button from Line to Offset then enter the character position you want to go to in the You want to go to field:

Goto offset

snowdude
  • 2,928
  • 19
  • 20
4

Not very elegant, but it works:

  • Ctrl+H
  • Find what: (?<=^.{55}).
  • CHECK . matches newline

This will highlight the 56th character from the begining of the file.

Toto
  • 19,304