Blog Post

Small Basic Blog
1 MIN READ

Small Basic for VS Code

NonkiTakahashi's avatar
NonkiTakahashi
Iron Contributor
Mar 08, 2022

Today, I'd like to introduce a VS Code extension for Small Basic syntax highlighting and snippets.

You can download "Small Basic for VS Code" written by alxnull (aka Bluegrams) from Visual Studio Marketplace.

 

Small Basic for VS Code

 

You can see a Small Basic program with syntax highlighting.

 

Syntax highlighting

 

And you can also choose snippets while editing Small Basic code.

 

Snippet

 

Have fun coding with "Small Basic for VS Code" !

Thank you alxnull for sharing this fantasic extension.

 

 

Updated Mar 08, 2022
Version 2.0
  • CleberLoch's avatar
    CleberLoch
    Copper Contributor
    Task to Compile file!
    '{
    '    // for the documentation about the tasks.json format
    '    "version": "2.0.0",
    '    "tasks": [
    '        {
    '            "label": "Small Basic Compiler",
    '            "type": "process",
    '           "command": "C:\\Program Files (x86)\\Microsoft\\Small Basic\\SmallBasicCompiler.exe",
    '            "args": ["${fileBasename}"],
    '        }
    '    ]
    '}
     
    -> I don't know how to configure the automatic start of the executable file after compilation and without having encountered errors. If anyone knows, please help!

     

  • tryhst09's avatar
    tryhst09
    Copper Contributor

    can it be run from vscode?

    it gives err no workspace folder...

      "security.workspace.trust.untrustedFiles": "open",
        "launch": {
            "configurations": [
            {
                "name": "Launch Program",
                "program": "${workspaceFolder}/app.js",
                "request": "launch",
                "skipFiles": [
                    "<node_internals>/**"
                ],
                "type": "pwa-node"
            }
            ]
        }
    }
  • CleberLoch, I also don't know about your question, but this is a nice progress using VSCode for Small Basic, anyway!  I could compile my Small Basic program with this tasks.json .  Thanks.