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: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

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.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
Fred
Administrator
Administrator
Posts: 16617
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: 794
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: 1353
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
Always Here
Always Here
Posts: 5342
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
User avatar
RSBasic
Moderator
Moderator
Posts: 1218
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!
Image
Image
jack
Addict
Addict
Posts: 1336
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: 1353
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: 1336
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: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

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
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
Kiffi
Addict
Addict
Posts: 1353
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: 25
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: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

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.
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

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
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
Post Reply