If you just want a light weight setup with no extension use this:
Create a .vscode directory in your workspace.
Create a tasks.json file within .vscode directory in the workspace.
Change this below:
Code: (Select All)
${config:qb64pe.compilerPath}
To the path where your QB64pe binary is, e.g.
Code: (Select All)
C:\QB64pe\qb64pe.exe
That's it, then hit CTRL-B and it will compile and show a little terminal window. Here you can see the warnings, etc.
Tasks are under Terminal menu -- Terminal -> Run Task... then you pick what you want. Because we configured this as a BUILD task, it will work with CTRL-B by default.
I HIGHLY RECOMMEND the extension, but wanted to give you the simplest instructions possible to get you going.
If you want colors like QB64PE IDE the Dark theme in my theme extension is an option for you:
https://open-vsx.org/extension/grymmjack/qb64pe-theme
To use it install the vsix file you downloaded, then click the gear icon in bottom left, then Themes, color theme - or press CTRL-K CTRL-T then pick it.
Good luck!
.vscode/tasks.json
Code: (Select All)
{
"tasks": [
{
"label": "EXECUTE: Run",
"dependsOn": "BUILD: Compile",
"type": "shell",
"windows": {
"command": "${fileDirname}\\${fileBasenameNoExtension}.exe",
},
"osx": {
"command": "${fileDirname}/${fileBasenameNoExtension}.run",
},
"linux": {
"command": "${fileDirname}/${fileBasenameNoExtension}.run",
},
"presentation": {
"echo": false,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": false,
"clear": false
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "BUILD: Compile",
"dependsOn": "BUILD: Remove",
"type": "shell",
"windows": {
"command": "${config:qb64pe.compilerPath}",
"args": [
"-w",
"-x",
"-f:MaxCompilerProcesses=8",
"${fileDirname}\\${fileBasename}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
]
},
"osx": {
"command": "${config:qb64pe.compilerPath}",
"args": [
"-w",
"-x",
"${fileDirname}/${fileBasename}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}.run"
]
},
"linux": {
"command": "${config:qb64pe.compilerPath}",
"args": [
"-w",
"-x",
"${fileDirname}/${fileBasename}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}.run"
]
},
"presentation": {
"reveal": "always",
"clear": true,
"panel": "shared",
"focus": false
}
},
{
"label": "BUILD: Remove",
"type": "shell",
"windows": {
"command": "del",
"args": [
"${fileDirname}\\${fileBasenameNoExtension}.exe"
]
},
"osx": {
"command": "rm",
"args": [
"-f",
"${fileDirname}/${fileBasenameNoExtension}.run"
]
},
"linux": {
"command": "rm",
"args": [
"-f",
"${fileDirname}/${fileBasenameNoExtension}.run"
]
},
"presentation": {
"reveal": "always",
"panel": "shared",
"focus": false
}
]
}