
If you use AutoHotkey, we can create a shortcut to launch file at a specific line: ^!1::

Open Text File at a Specific Line Number with AutoHotkey

The target field should read something like: "C:\Program Files (x86)\Notepad++\notepad++.exe" "C:\Files\file.txt" -n1500 We can also create a desktop shortcut to the file by editing the target path as below. Create Desktop Shortcut to Open File at Specific Line multiInst enables opening of multiple instances. Start notepad++ -multiInst "C:\Files\file2.txt" -n1000īy default Notepad++ runs in a single instance. In the same way, you can open multiple files at a specific line number like this: start notepad++ -multiInst "C:\Files\file1.txt" -n1500 To run this from command prompt, you can use this command: start notepad++ "C:\Files\file.txt" -n1500 Open Multiple File at a Specific Line Number You can use the command-line option as following: -nįor example, to open a file directly at line 1500, we can pass it as notepad++ filename -n1500. We can control Notepad++ startup by passing the line number as an argument at launch time from the command line or via a shortcut. Open File at a Specific Line Number in Notepad++

An alternate way to open file at a specific line number in Notepad++ is to make use of a command line switch while opening the file. Depending on the file or environment, it may not be always possible to do that. For this functionality to work, you’ve to keep the document open in the editor. Each time you open Notepad++, you are directly brought to the line where you left off previously. This could be quite useful when one is working on a large file regularly. Notepad++ has a built-in feature where it remembers the last edited position in a document.
