Notepad++ shortcut

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
User avatar
Posts: 48
Joined: Fri Oct 24, 2008 11:37 pm

Notepad++ shortcut

Post by zapwow » Sat Oct 25, 2008 6:47 pm

If anyone is developing in Notepad++ and tired of dragging their folders onto love.exe to run them, you can create a keyboard shortcut with this handy command. Press F5, and enter exactly this:
c:\Progra~1\LOVE\love.exe "$(CURRENT_DIRECTORY)"
... assuming you've installed LOVE to the default directory. Click Save... and assign any keyboard shortcut you want. Now running your program takes a single keystroke!

User avatar
Dr. Magnusson
Posts: 22
Joined: Sun Jul 20, 2008 6:10 pm

Re: Notepad++ shortcut

Post by Dr. Magnusson » Sun Oct 26, 2008 5:24 am

Thank you!

This really makes testing a lot easier. Before I used bat files for this, but this makes it even easier than before :D

User avatar
Posts: 18
Joined: Wed Oct 28, 2009 10:32 pm

Re: Notepad++ shortcut

Post by Carl » Sat Oct 31, 2009 8:09 pm

I know this is an old thread but I would like to get this working, I tried the code above but no luck so anyone got any ideas?

User avatar
Posts: 27
Joined: Thu Feb 12, 2009 2:25 pm

Re: Notepad++ shortcut

Post by Skasi » Sun Jan 17, 2010 5:17 pm

Well maybe you placed love in a different directory than zapwow, in this case you have to adjust the path. I suggest using the ... button to look for the love.exe and if you have found it, add "$(CURRENT_DIRECTORY)" (including the quote signs and with space between the command and the path to love.exe!) to the end of the input field.


Code: Select all

C:\Programme\LOVE\love.exe "$(CURRENT_DIRECTORY)"
C:\Program Files\LOVE\love.exe "$(CURRENT_DIRECTORY)"
Also shortcuts using CTRL do not seem to work (well at least ctrl+space does not for me). You also have to remember that this shortcut only works if you are viewing a file that is placed in the mainfolder.

Posts: 10
Joined: Wed Jul 01, 2009 12:34 pm

Re: Notepad++ shortcut

Post by ecliptic » Sun Jan 17, 2010 5:42 pm

This worked well for me, good tip! :)

osuf oboys
Party member
Posts: 215
Joined: Sun Jan 18, 2009 8:03 pm

Re: Notepad++ shortcut

Post by osuf oboys » Sun Jan 17, 2010 9:26 pm

Useful, thanks.

Skasi: I think it is rather that shortcuts that are already in use cannot be assigned. For instance, Ctrl+R works fine, for me at least, but not Ctrl+S. You can see the present shortcuts, or change/remove the ones you added, under settings>shortcut mapper.
If I haven't written anything else, you may assume that my work is released under the LPC License - the LÖVE Community. See

User avatar
Posts: 45
Joined: Thu Jan 14, 2010 7:59 pm
Location: UK

Re: Notepad++ shortcut

Post by zipperipper » Mon Feb 15, 2010 9:54 pm

wow that is like.. a HUGE time saver! :ultrahappy:
Error 404, consciousness not found.

User avatar
Party member
Posts: 211
Joined: Fri Feb 13, 2009 10:45 pm

Re: Notepad++ shortcut

Post by Xcmd » Sun Feb 21, 2010 3:27 pm

Better late that never, eh?

If you're running a 64-bit operating system (like me), and you've installed Love to the Program Files (x86) folder (like I did), then you may need to use the following command:

Code: Select all

C:\Progra~2\LOVE\love.exe "$(CURRENT_DIRECTORY)"
Note the use of "Progra~2" in lieu of "Progra~1".
We don't borrow, we don't read, we don't rent, we don't lease, we take the minds!

User avatar
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO

Re: Notepad++ shortcut

Post by TechnoCat » Sun Feb 21, 2010 3:32 pm

Am I the only Windows user that puts the love dir in the PATH env var so I can type love in the command prompt? It also makes my notepad++ run command:
Last edited by TechnoCat on Sun Feb 21, 2010 3:33 pm, edited 1 time in total.

User avatar
The Omniscient
Posts: 6506
Joined: Fri Feb 20, 2009 4:29 pm
Location: The Netherlands

Re: Notepad++ shortcut

Post by Robin » Sun Feb 21, 2010 3:32 pm

TechnoCat wrote:Am I the only Windows user that puts the love dir in the path so I can type love in the command prompt?

Ah, LÖVE on Windows. That was a long time ago...
Help us help you: attach a .love.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 18 guests