Re: PB language support for Visual Studio Code
Posted: Sun Dec 09, 2018 1:47 pm
Congratulations!eddy wrote:I published the Purebasic extension for VS Code.
Install count + 1
![Very Happy :D](./images/smilies/icon_biggrin.gif)
http://www.purebasic.com
http://forums.purebasic.com/english/
Congratulations!eddy wrote:I published the Purebasic extension for VS Code.
I just installed it, too. Thanks for your great work!eddy wrote:I published the Purebasic extension for VS Code.
I know that. I've already changed tabs to spaces for vscode and it's working fine for other files. But once I open a file containing PB code, the tab size is set to 3 for that file. I have to manually change it per file every time.eddy wrote:How to change Tab size
- Press F1
- Enter "settings"
- Select Open Settings
- Enter "tab size"
I declared some custom parameters for Purebasic. You can change PureBasic Tab Size setting as follows :Programie wrote:I know that. I've already changed tabs to spaces for vscode and it's working fine for other files. But once I open a file containing PB code, the tab size is set to 3 for that file. I have to manually change it per file every time.eddy wrote:How to change Tab size
- Press F1
- Enter "settings"
- Select Open Settings
- Enter "tab size"
I'm using Tasks of vscode for that.GG wrote:Is it possible to configure inside VS Code to be able to call PB Compiler directly from Visual Code ?
Code: Select all
{
"version": "2.0.0",
"tasks": [
{
"label": "Compile (test)",
"type": "shell",
"command": "${PUREBASIC_HOME}/compilers/pbcompiler --executable src/purebasic_compilation0.out --debugger --constant PB_Editor_CreateExecutable=0 src/gui.pb",
"group": {
"kind": "test"
}
},
{
"label": "Compile (build)",
"type": "shell",
"command": "${PUREBASIC_HOME}/compilers/pbcompiler --executable keyboard-mapper --constant PB_Editor_CreateExecutable=1 src/gui.pb",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Run",
"type": "shell",
"command": "src/purebasic_compilation0.out",
"dependsOn": [
"Compile (test)"
],
"group": {
"kind": "test",
"isDefault": true
}
}
]
}
Code: Select all
{
"version": "2.0.0",
"tasks": [
{
"label": "Compile (test)",
"type": "shell",
"command": "d:\\Applications\\PureBasic\\compilers\\pbcompiler /exe gencalend.exe /debugger /constant PB_Editor_CreateExecutable=0 /constant PB_Editor_CompileCount=1 gencalend.pb",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Compile (build)",
"type": "shell",
"command": "d:\\Applications\\PureBasic\\compilers\\pbcompiler /exe gencalend.exe /constant PB_Editor_CreateExecutable=1 /constant PB_Editor_CompileCount=1 gencalend.pb",
"group": "build"
},
{
"label": "Run",
"type": "shell",
"command": "gencalend.exe",
"dependsOn": [
"Compile (test)"
],
"group": {
"kind": "test",
"isDefault": true
}
}
]
}