Share My Creation VS Code Extension for B4X development

Hi Everyone,

As promised, I have just published my b4x extension in VS code marketplace for everyone, and make my extension project MIT license and public my repo for anyone who want to alter it for their own use. Below is the project's GitHub page: B4X-Language-Support; also, you can find the extension on the VS code marketplace as well. The name is B4X-VSCODE; alternatively, you can also download the attachment here, it is the read-to-use extension file v0.1.0.

Please feel free to try it out, and let me know your thought. If you find any bugs, feel free to let me know as well, always happy to make my own project better. This is my first open source project, so please go gentle on me. 😝

The features on the extension are still limited; but for light programming on the go, I am kind of happy. But I am constantly maintaining the project to make it more feature-rich as well; so stay tune.
 

Attachments

  • b4x-vscode-0.1.0.vsix.zip
    74.7 KB · Views: 32

jtare

Active Member
Licensed User
Longtime User
This is awesome! I'm curious on how does the work flow goes, you code on vs-code and then open the b4x IDE to compile, read logs, use the designer?

I wonder if would be possible to run a NON UI B4X so maybe you can fully work on vs-code, or my case, Cursor.

Edit: I was literally thinking if this was possible to do last week
 

jtare

Active Member
Licensed User
Longtime User
Unfortunately is not compatible with my version of Cursor, or maybe any version of Cursor.

Edit: Got it to work by modifying the package.json, also added b4a, b4i and b4j file extensions
 
Last edited:

Jansen611

Member
This is awesome! I'm curious on how does the work flow goes, you code on vs-code and then open the b4x IDE to compile, read logs, use the designer?

I wonder if would be possible to run a NON UI B4X so maybe you can fully work on vs-code, or my case, Cursor.

Edit: I was literally thinking if this was possible to do last week
I am using the an extension call "code runner" to do compiling and sending release app to Android device over wifi using the tools built by Erel, B4ABuilder and BridgeCLI. If you do a search in the forum, you can find example on how to use them.
 

Jansen611

Member
Unfortunately is not compatible with my version of Cursor, or maybe any version of Cursor.

Edit: Got it to work by modifying the package.json, also added b4a, b4i and b4j file extensions
Good to know. I haven't really do any testing on curser; as I am using viscose + continue combo for the AI needs. But I have been hearing story about how great Cursor is. Do you mind let me know what you have change to make it curser compatible? I can add those changes in as well so people can use it for their curser environment.
 

jtare

Active Member
Licensed User
Longtime User
Good to know. I haven't really do any testing on curser; as I am using viscose + continue combo for the AI needs. But I have been hearing story about how great Cursor is. Do you mind let me know what you have change to make it curser compatible? I can add those changes in as well so people can use it for their curser environment.
It was a version issue. Latest version of Cursor is based on vs-code 1.96.2 and the B4X extension you created requieres minimum vs-code 1.97.0, so by just changing that it was accepted and works fine. Other than I added .b4a, .b4i and .b4j file extensions to be recognized and added some rules to correctly highlight "wait for" and the "#if", "#end if", "#region", etc. lines that are unique to the B4X IDE.
 

Jansen611

Member
Just FYI everyone, the latest version v0.1.4 is now available in the public repo. Feel free to try it out, and I hope you would find it useful.

I have added support to some B4X base classes/methods and fixed some bugs thanks to @jtare.

If you found any bugs to would like to have any changes implemented. Please let me know here or submits an issue in the GitHub issue page in the repo. Thank you.
 
Top