Notepad++ Auto-Complete Config for LÖVE 0.6.2
Posted: Tue May 11, 2010 2:42 pm
I just recently discovered LÖVE, and I love it. But there was one thing that was bugging me: wouldn't it be great if Auto-Complete in Notepad++ worked with LÖVE's API?
Well, now it can!
Instructions:
- Download the lua.xml and place it in your Notepad++/plugins/APIs/ directory.
- In Notepad++, go to Settings > Preferences in the menu.
- Select the Backup/Auto-Completion tab.
- Make sure "Enable auto-completion on each input" is checked.
- Set it to "Function completion."
- And check "Function parameters hint on input."
And...bam! Auto-Completion for LÖVE API functions in Notepad++. Of course, it's no Visual Studio Intellisense, but it's a lot nicer than having to look up and/or remember all the function names/parameters/return types.
NOTES:
- This file was made for LÖVE 0.6.2, and will need to be updated if/when any API changes are made.
- It only works for the main love.* API functions (like love.graphics.checkMode()), not the prototype functions on objects (like source:isLooping(), etc). If someone can think of a good way to do those, let me know and I'll gladly add them in.
- This lua.xml only includes the LÖVE API functions, not the Lua API functions. If someone knows of a lua.xml out there that has all the Lua API functions with parameters, I'll merge them in with this one.
Anyhow, enjoy! Let me know if you have any tips/problems/suggestions/etc/etc.
EDIT: Updating the file with a fix for functions that have no return value. They should now properly generate function parameter hints, like all the other functions.
Well, now it can!
Instructions:
- Download the lua.xml and place it in your Notepad++/plugins/APIs/ directory.
- In Notepad++, go to Settings > Preferences in the menu.
- Select the Backup/Auto-Completion tab.
- Make sure "Enable auto-completion on each input" is checked.
- Set it to "Function completion."
- And check "Function parameters hint on input."
And...bam! Auto-Completion for LÖVE API functions in Notepad++. Of course, it's no Visual Studio Intellisense, but it's a lot nicer than having to look up and/or remember all the function names/parameters/return types.
NOTES:
- This file was made for LÖVE 0.6.2, and will need to be updated if/when any API changes are made.
- It only works for the main love.* API functions (like love.graphics.checkMode()), not the prototype functions on objects (like source:isLooping(), etc). If someone can think of a good way to do those, let me know and I'll gladly add them in.
- This lua.xml only includes the LÖVE API functions, not the Lua API functions. If someone knows of a lua.xml out there that has all the Lua API functions with parameters, I'll merge them in with this one.
Anyhow, enjoy! Let me know if you have any tips/problems/suggestions/etc/etc.
EDIT: Updating the file with a fix for functions that have no return value. They should now properly generate function parameter hints, like all the other functions.