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