In Windows 10 and Windows 11 Notepad, open the text file, press Ctrl+G, enter the line number, and select Go To or press Enter. Turn on View > Status bar to check the resulting Ln value. If Go To is unavailable, turn off Word Wrap and try again; the menu containing that setting depends on which Notepad interface you have.

Notepad displays an app_config.ini file with line 247 highlighted and a Go To dialog set to line 247. Before you open the file​

You need the file’s location and the line number from the error or instruction. If the message also gives a column number, keep it handy: Go To takes you to a line, and the status bar can help you locate a position within it.

  • Choose the exact file named in the message. Files in different folders can have the same name but different contents.
  • Use the same version of the file that produced the error. Adding or removing lines can make an earlier line reference point somewhere else.
  • Treat logs and configuration files as sensitive. They can contain passwords, tokens, personal information, or system details. Avoid sharing their contents without checking them first.
  • You do not need to save the file to navigate it. Go To, the status bar, and Word Wrap are viewing tools; the investigation below does not require changing the file’s contents or restarting Windows.

Microsoft’s Notepad help also documents a special case: opening a file that begins with .LOG can cause Notepad to add a timestamp. If preserving the original exactly matters, work with a copy rather than saving changes to the original.

Open the file and jump to the line​

  1. Open Notepad. Select Start, type Notepad, and select Notepad from the results.
  2. Open the file. Press Ctrl+O, browse to the file, select it, and choose Open. If you don’t see a log or configuration file in the file picker, check the file-type filter and choose All Files if it is available.
  3. Check Word Wrap. For the most predictable line-by-line view, turn it off:
    • In the classic interface commonly found on Windows 10, select Format > Word Wrap if it has a check mark.
    • In the updated Windows 11 interface, select View > Word wrap if it is enabled.
    Notepad’s interface can differ with the app version, so follow the menu you actually see. With wrapping off, a long line may extend beyond the right edge of the window; use the horizontal scroll bar to see the rest.
  4. Open Go To. Click in the document, then press Ctrl+G. You can also select Edit > Go to.
  5. Enter the line number. In the dialog, type the number from the error—for example, 247—without the word “line.” Select Go To or press Enter.
  6. Inspect the location. Notepad moves the insertion point to the requested line. Read that line and the surrounding text before making any changes. An error can be reported at the place where an application detected a problem, which is not necessarily where the underlying mistake began.

If Go To does not open or the menu command is disabled, see the troubleshooting section below.

Show the status bar and verify the jump​

The status bar shows the insertion point’s current line and column. It is a position indicator, not a numbered margin beside every line.

  1. In Notepad, open View.
  2. Select Status bar if it is not already enabled.
  3. Look along the bottom of the Notepad window for a readout such as Ln 247, Col 1. Ln is the line; Col is the column.
  4. After using Go To, confirm that Ln matches the number you entered. If you click elsewhere or move with the arrow keys, the readout changes to reflect the new insertion point.

Microsoft added support for displaying line and column information with Word Wrap enabled in its Windows 10 Notepad improvements in 2018. Consequently, a visible status bar does not prove that Word Wrap is off. If Go To is unavailable, check the Word Wrap setting separately.

Check a reported column​

Go To is a line-number command; it does not ask for a column. After jumping to the line, use the status-bar Col value as you move through the text with the arrow keys. For example, if an error reports line 247, column 12, first go to line 247, then move along that line while watching the column value.

Column conventions can differ between applications, especially around tabs or non-ASCII text. If the indicated character does not look relevant, inspect the nearby characters and consult the application’s own error details before editing.

Test Go To with a small example​

If you are unsure whether the command is working, test it in a new, unsaved document rather than experimenting on a configuration file.

  1. In Notepad, create a new document with File > New.
  2. Type the following three lines, pressing Enter between them:
    Code:
    first line
    second line
    third line
  3. Make sure Word Wrap is off using the menu for your Notepad interface.
  4. Press Ctrl+G, enter 3, and select Go To.
  5. With View > Status bar enabled, check for Ln 3 at the bottom. The insertion point should be on the third line.

This test separates a problem with the shortcut or Notepad interface from a problem with the original file or its reported line number. You can close the test without saving it.

Troubleshoot Go To and line-number mismatches​

  • Go To is gray or Ctrl+G does nothing. First click inside the document, then check Edit > Go to. Turn off Word Wrap under Format in the classic interface or View in the updated interface, and try again. Older Notepad behavior specifically made Go To unavailable while wrapping was enabled; newer versions can behave differently, so check your actual menu state.
  • The status bar is missing. Select View > Status bar. If the option is unavailable in an older interface, turn off Word Wrap and check again. In newer Notepad versions, the status bar can remain available with wrapping enabled.
  • The line number is beyond the end of the file. Check that you opened the full file rather than an excerpt, an older copy, or a different file with the same name. Also check that the error’s number is a line number—not a column, byte offset, or code. Dismiss the dialog and retry with a valid line number.
  • The line number is right, but the text looks wrong. Compare the full path and file version with the error. A file may have changed since the message was generated, or the message may refer to a generated file rather than the source file you opened. Check the lines immediately before and after the reported location as well.
  • The screen seems to show more lines than the status bar. Word Wrap can display one long stored line across several rows. Turn it off and use the horizontal scroll bar to inspect the entire line. Turning wrap on or off changes the display, not the line breaks in the file.
  • The file looks garbled or appears to be one enormous line. Confirm that it is a plain-text file, not a binary file, and that it is the file named by the error. If the producing application uses an encoding or format Notepad does not display as expected, use that application’s documented viewer or editor. Do not save over the original merely to test how it opens.
  • A growing log no longer matches the error. The application may have continued writing to or rotating the log after the error occurred. Look for the timestamp and surrounding message with Ctrl+F, and check whether the error refers to an archived or earlier log file.

Finish without changing the original​

If you only needed to inspect the line, leave the file’s contents unchanged. Restore Word Wrap by selecting the same menu option again if you prefer it enabled, and toggle View > Status bar if you prefer it hidden.

Before editing a live configuration file: make a backup and follow the application’s own instructions for changes and recovery. A line number alone does not establish that a particular edit is safe. If you accidentally type in the file, use Edit > Undo promptly and verify the text before saving; if you cannot establish that the original content is intact, do not overwrite it.