Powershell auto-completion for Notepad++
2008-05-08
I’ve been working on a PowerShell auto-completion file for my favorite lightweight text-editor (Notepad++) as I couldn’t find one online: powershellapi
You need to rename the file to powershell.api yourselves as WordPress.com limits the file extensions that can be uploaded.
Procedure:
- 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 “…\Notepad++\plugins\APIs”
- Rename it to powershell.api.
- 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.

2008-05-09 at 15:38
Yea downloading this file doesn’t work. can you compress the file as a zip and re upload it?
2008-05-09 at 16:36
Phill,
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.
Koen