Powershell auto-completion for Notepad++

I’ve been working on a PowerShell auto-completion file for my favorite lightweight text-editor (Notepad++) as I couldn’t find one online: powershell.xml


  1. Install the PowerShell Language Definitions for Notepad++ (for syntax highlighting) and make sure it’s working (this is a prerequisite).
  2. Save the the file above in “C:\Program Files\Notepad++\plugins\APIs”
  3. Make sure the language is set to powershell in your document.

npp language selection

Note: You might want to have a look at the Notepad++ Auto-completion HOWTO for more details about this feature.

The auto-complete features of npp are not the most powerful though. It seems to work perfectly if you hit CTRL+SPACE before the dash. If you try after the dash it seems to forget about the verb in a PS-cmdlet. Even the builtin languages like LISP sport the same behaviour. The underscore characters in the WMI-class names and the “about” pages do not pose a problem.

*Update 2009-01-29 Npp has switched to the xml format for the autocompletion files. I’ve uploaded an xml version of the previous file to some other webspace (= no renaming anymore) and update the post accordingly.



Tagged with: ,
Posted in Software
6 comments on “Powershell auto-completion for Notepad++
  1. Phil says:

    Yea downloading this file doesn’t work. can you compress the file as a zip and re upload it?

  2. k0v3 says:


    Zip files are also not allowed. This time I’ve simply added a .doc extension to the api file. So it’s not a real word document anymore. I’ve also rewritten part of my post to make it more clear on how to use the file. Can you give it another try?

    If it still doesn’t work, please provide a more detailed explanation of your problem.


  3. k0v3 says:

    It looks like the latest version of Notepad++ (v 5.6) has Powershell support builtin:

    Add COBOL, D, Gui4Cli, PowerShell and R language support.

  4. […] There are other editors and scripting environments available like PowerShell Analyzer and PrimalScript. Or if you’re the editor and PowerShell console guy you might be interested in PrimalPad or extending Notepad++ with  PowerShell syntax highlighting and auto-completion. […]

  5. autos says:

    Ik heb blog.koenvermoesen.be gevonden via startpagina Gaaf gemaakt! Ik hoop zelf ook zo een template gebruiken.
    Hoe heb je dit gemaakt?


Comments are closed.

IT Pro Summer GP
IT Pro Summer Grand Prix

IT Pro Summer Grand Prix

Microsoft Virtual Academy

MS Virtual Academy

Pro-Exchange / Pro-Lync / Pro-Office365

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 158 other followers

%d bloggers like this: