Visual Studio Code Extension for BeebAsm

bbc/electron apps, languages, utils, educational progs, demos + more
Post Reply
User avatar
simonm
Posts: 316
Joined: Mon May 09, 2016 3:40 pm
Contact:

Visual Studio Code Extension for BeebAsm

Post by simonm »

Hi all,
I posted this on retrosoftware forums as well, but for anyone looking for a nice 6502 development environment for the beeb, I've lashed together an extension for Visual Studio Code to provide nice syntax colouring etc.
https://marketplace.visualstudio.com/it ... m.beeb-vsc

VSC is pretty decent, it's free, lightweight, and unlike the full versions of VS it is folder/file based so no need for project/solution files etc. Plus built-in git etc. I'm keen to see if the extension can support toolchains too so full compile/debug support for beebasm can be added.

Cheers
Simon
User avatar
kieranhj
Posts: 936
Joined: Sat Sep 19, 2015 11:11 pm
Location: Farnham, Surrey, UK
Contact:

Re: Visual Studio Code Extension for BeebAsm

Post by kieranhj »

Awesome! Any chance you can put this together for those of us lucky enough to have full VS? :)
Bitshifters Collective | Retro Code & Demos for BBC Micro & Acorn computers | https://bitshifters.github.io/
User avatar
simonm
Posts: 316
Joined: Mon May 09, 2016 3:40 pm
Contact:

Re: Visual Studio Code Extension for BeebAsm

Post by simonm »

I get the impression integrations for the full strength flavour of VS are a different beastie altogether.
Visual Studio Code seems to be a distinctly different product line, and has its own extension marketplace.
So short answer is, unfortunately not!
I suspect it might just be simpler to install VSC alongside VS Pro just for beeb projects.
User avatar
simonm
Posts: 316
Joined: Mon May 09, 2016 3:40 pm
Contact:

Re: Visual Studio Code Extension for BeebAsm

Post by simonm »

Hi all,
So I've just published a major update to this extension that now fully supports assembling and running a project within VSC, which was one of my initial goals as I was getting fed up with running batch files in the command shell, and wanted something more IDE-like.

v0.0.6
Assemble & test 6502 projects all within Visual Studio Code
Assembly errors are parsed and sent to VSC's built-in error navigation view
Uses Visual Studio Code tasks for building & testing
Easily create new build targets (supports multiple targets within a project folder)
Easily select 'default' build targets
Run build targets in the emulator of your choice

It defaults to using BeebAsm and BeebEm but these can be configured.

Full setup details on the marketplace link here: https://marketplace.visualstudio.com/it ... m.beeb-vsc

I think Tricky mentioned Perforce as his version control weapon of choice, so there's a P4 extension for VSC here:
https://marketplace.visualstudio.com/it ... e.perforce


Cheers
Simon
User avatar
tricky
Posts: 5145
Joined: Tue Jun 21, 2011 9:25 am
Contact:

Re: Visual Studio Code Extension for BeebAsm

Post by tricky »

Wow, that's great, I'll give it another go ;)
User avatar
sbadger
Posts: 454
Joined: Mon Mar 25, 2013 1:12 pm
Location: Farnham, Surrey
Contact:

Re: Visual Studio Code Extension for BeebAsm

Post by sbadger »

Hi, Just giving this ago but having problems.
It's a fresh install of VSCode, installed the extension with crt+shft+x no problems.
I've opened a .6502 and the syntax highlighting is working, but if i press f10 i get:-

[Warn] Running the contributed command :'extension.target.creted failed.

i've uninstalled and reinstalled the extension and vscode with no luck.

stew
So many projects, so little time...
User avatar
sbadger
Posts: 454
Joined: Mon Mar 25, 2013 1:12 pm
Location: Farnham, Surrey
Contact:

Re: Visual Studio Code Extension for BeebAsm

Post by sbadger »

sbadger wrote:Hi, Just giving this ago but having problems.
It's a fresh install of VSCode, installed the extension with crt+shft+x no problems.
I've opened a .6502 and the syntax highlighting is working, but if i press f10 i get:-

[Warn] Running the contributed command :'extension.target.creted failed.

i've uninstalled and reinstalled the extension and vscode with no luck.

stew
solved - apparently you need to 'Open Folder' rather than 'Open File'
So many projects, so little time...
User avatar
simonm
Posts: 316
Joined: Mon May 09, 2016 3:40 pm
Contact:

Re: Visual Studio Code Extension for BeebAsm

Post by simonm »

Cool - glad you got it going. Feedback very welcome.
Post Reply

Return to “8-bit acorn software: other”