PB language support for Visual Studio Code

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
eddy
Addict
Addict
Posts: 1477
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes
Contact:

PB language support for Visual Studio Code

Post by eddy »

Hi,

I publish some plugins to support PB language on VS Code Marketplace:
:arrow: VS Code extensions

Features
  • code auto indentation
  • code beautfier
  • code snippet support
  • add purebasic dark/light color themes
  • add purebasic icon theme
How to install

Image

How to choose color theme
  • Press F1
  • Enter "theme"
  • Select Color Theme
  • Select one of new PureBasic color themes
    :mrgreen: This will change colors of the editor and your code
Image

How to choose icon theme
  • Press F1
  • Enter "theme"
  • Select File Icon Theme
  • Select new PureBasic icon theme
    :mrgreen: This will change icons in file explorer and you'll see the red Z icon next to purebasic files
Image

How to insert snippet
It's an experimental project. There's syntax file (tmLanguage)

Image
Last edited by eddy on Sun Dec 09, 2018 1:45 pm, edited 19 times in total.
Imagewin8.1 x64 5.31 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
Fred
Administrator
Administrator
Posts: 14348
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB language support for Visual Studio Code

Post by Fred »

Very cool, Thanks !
User avatar
Zebuddi123
Enthusiast
Enthusiast
Posts: 771
Joined: Wed Feb 01, 2012 3:30 pm
Location: Nottinghamshire UK
Contact:

Re: PB language support for Visual Studio Code

Post by Zebuddi123 »

@eddy Fabulous my friend just whats needed!. :) (no disrespect to the pbide!)

Thanks Zebuddi. :)
malleo, caput, bang. Ego, comprehendunt in tempore
IndigoFuzz

Re: PB language support for Visual Studio Code

Post by IndigoFuzz »

Super handy. Thank you very much :D
User avatar
Kiffi
Addict
Addict
Posts: 1193
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: PB language support for Visual Studio Code

Post by Kiffi »

Thanks a lot! Image

and now please: IntelliSense and Build Tasks ;-)

Greetings ... Peter
Hygge
User avatar
Kwai chang caine
Addict
Addict
Posts: 4946
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: PB language support for Visual Studio Code

Post by Kwai chang caine »

Thanks to you, i have even discovered this splendid project open source "Visual Studio Code" :oops:
it must be said that we are not really used to the generosity of microsoft source code :shock:
I have download "Visual Studio Code" and make a test soon
Thanks for your thread, works, idea and sharing EDDY 8)
ImageThe happiness is a road...
Not a destination
RSBasic
Moderator
Moderator
Posts: 1119
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: PB language support for Visual Studio Code

Post by RSBasic »

Very cool!
ImageImageImageImage Image
jack
Addict
Addict
Posts: 1252
Joined: Fri Apr 25, 2003 11:10 pm

Re: PB language support for Visual Studio Code

Post by jack »

I just found VS community edition for Mac, wonder if you VS extension would also work on the Mac?
User avatar
Kiffi
Addict
Addict
Posts: 1193
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: PB language support for Visual Studio Code

Post by Kiffi »

jack wrote:I just found VS community edition for Mac, wonder if you VS extension would also work on the Mac?
eddy wrote this extension for Visual Studio Code; not for Visual Studio. Confusion danger! :)

Take a look: https://code.visualstudio.com/ (also works on a Mac)

Greetings ... Peter
Hygge
jack
Addict
Addict
Posts: 1252
Joined: Fri Apr 25, 2003 11:10 pm

Re: PB language support for Visual Studio Code

Post by jack »

thanks Kiffi :)
User avatar
eddy
Addict
Addict
Posts: 1477
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes
Contact:

Re: PB language support for Visual Studio Code

Post by eddy »

- code auto indentation
- code beautfier
- code snippet support
- add dark theme
- add icon theme

Todo:
- code completion
- code outline (structure)

Image
Imagewin8.1 x64 5.31 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
Kiffi
Addict
Addict
Posts: 1193
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: PB language support for Visual Studio Code

Post by Kiffi »

very cool, eddy! Keep on going! :D
Hygge
User avatar
Programie
User
User
Posts: 24
Joined: Thu Aug 09, 2007 11:26 am
Location: Gernsbach (Germany)
Contact:

Re: PB language support for Visual Studio Code

Post by Programie »

I just gave your vscode PB language support a try. Awesome!

Is it right that the language support can only be used in the vscode instance started using "Launch Client"? How to install and use it in the "normal" vscode instance?
ImageImageImageImage
User avatar
eddy
Addict
Addict
Posts: 1477
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes
Contact:

Re: PB language support for Visual Studio Code

Post by eddy »

Programie wrote: Is it right that the language support can only be used in the vscode instance started using "Launch Client"? How to install and use it in the "normal" vscode instance?
Yes, it is.

But I plan to publish this first version to VS code MarketPlace.
It will be easier to install and test. :D

https://i.imgur.com/TA7TcL4.png
Last edited by eddy on Sun Dec 09, 2018 1:22 pm, edited 2 times in total.
Imagewin8.1 x64 5.31 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
eddy
Addict
Addict
Posts: 1477
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes
Contact:

Re: PB language support for Visual Studio Code

Post by eddy »

Hi,
I published the Purebasic extension for VS Code. :D

I splitted it into two plugins to make futur update easier.
Image
Imagewin8.1 x64 5.31 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
Post Reply