How to make a shortcut key on Love2d support to work?

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.
Post Reply
Nyakomon
Prole
Posts: 1
Joined: Fri Jun 12, 2020 7:41 pm

How to make a shortcut key on Love2d support to work?

Post by Nyakomon »

Hi, so I have downloaded love2D, VS code and installed love2d support extension made by pixelbyte
I went to VS code's preference and changed the PATH for my love.exe
also I checked if shortcut key is set there and i see Alt+L to run it
I made a folder and a main.lua in and i tried to run it by pressing shortcut but nothing happens
if I drag and drop the folder to love.exe, it works...
How can i make it to work on VS code? if anyone has idea what i'm doing wrong please let me know

I'm using windows 10 and I installed by love installer. I have VS code and the main.lua file in the same drive.
I don't have Lua installed.
Andlac028
Party member
Posts: 174
Joined: Fri Dec 14, 2018 2:27 pm
Location: Slovakia

Re: How to make a shortcut key on Love2d support to work?

Post by Andlac028 »

Hi and welcome to the forums!
Did you modified "pixelbyte.love2d.srcDir" setting? It sets source folder to search for main.lua as relative path from root of the project. Default its "src" so your main.lua must be in (root of project)/src/main.lua until you change this setting. The configuration and setup can be found here
Post Reply

Who is online

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