VS Code output console

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
Posts: 2
Joined: Sat Jun 01, 2019 8:18 am

VS Code output console

Post by CryptoLogiq »

TUTO Output on VS Code of linux :

Create file :


Code: Select all

love $(pwd)

if you launch Love2D on .AppImage :

exemple :

Code: Select all

$HOME'/Documents/Outil/Love/love2d.AppImage' $(pwd)

Vérify your file is executable...

copy the file on /USR/BIN/

in VS Code, opren your project and,

search "Terminal" and type :

VSCode_love2D (or the name of you have save the file in your /usr/bin)

this command execute your project and you have a output in the "Terminal"

bonus !
this function add a color for output :

Code: Select all

function printc(pText, pType)
    local color = {warning = "\x1B[33m", 
                    info = "\x1B[32m", 
                    error = "\x1B[31m",
                    default = "\x1B[m"
    local type = pType or "default"
    print("** ("..string.upper(type)..") ** "..pText)
change your print by printc =)
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 81 guests