Search code examples
powershellnotepad++

Open Notepad++ from PowerShell


How can I open up a file in Notepad++ from the Powershell command line?


Solution

  • Inside PowerShell I can simply use the start and get general results

    to open a python file with notepad++ here is what I did.

    Start notepad++ ex1.py
    

    this will start notepad++ and load the file ex1.py assuming you are in the same directory as the .py file. You can change that by adding the full path name

    start notepad++ c:\users\you\desktop\files\ex1.py