![]() |
Forum Index : Microcontroller and PC projects : VS Code editor
Author | Message | ||||
zeitfest Guru ![]() Joined: 31/07/2019 Location: AustraliaPosts: 608 |
There is a code editor "VS Code" which apparently can be set up for many languages etc, looks pretty popular. Any impressions ? |
||||
EDNEDN Senior Member ![]() Joined: 18/02/2023 Location: United StatesPosts: 174 |
It is good. I prefer Vi to edit my code but VS Code has become a default building block for many low level build environments. Many different embedded platforms use it to build their environment. Hopefully, whatever you are trying to build comes with a Cheat Sheet telling you the steps to get it setup for whatever you are doing. Because it has a ton of features and the ability to load all kinds of extensions. The learning curve to understand it is pretty steep. But once it is setup correctly for what you are building, you can just focus on what you are doing. And VS Code is tolerant of the user editing the source files outside of its editor. So I usually have a couple Vi windows open on the relevant files I'm working on even though VS Code is open also. |
||||
Andy-g0poy Regular Member ![]() Joined: 07/03/2023 Location: United KingdomPosts: 78 |
I've looked at it a few times, and overall my impression is that it is insanely complex, so much so that I gave up trying to use it. It makes vi look easy-peasy I usually use the KDE editor Kate for most things. Andy |
||||
EDNEDN Senior Member ![]() Joined: 18/02/2023 Location: United StatesPosts: 174 |
Yes. This is true. VS Code isn't something I would use for normal stuff. But many large open source code bases do use it because it is very powerful and can be expanded in what ever direction is needed. And with a large user base, that isn't a problem. Somebody will create a Cheat Sheet and help you to get things configured so it builds the environment for your hardware and according to your desires. But... For anything being done for yourself... You don't want to use it. If you tinker with large open source projects, you will have to learn how to get it installed and how to use its basic functions. |
||||
karlelch![]() Senior Member ![]() Joined: 30/10/2014 Location: GermanyPosts: 254 |
Hi, I like VS code - I am using it for all sorts of project. You can use it as a simple editor but also for complex tool chains. The latter can get quite complicated, though there are packages that do lots of the setting up work for you. It works nicely with git repositories and offers binding in AI (e.g., Claude, ChatGTP). I also like the fact that it is available for all (?) operating systems, including Rasbian OS, and the look-and-feel is always much the same. Best Thomas |
||||
LeoNicolas![]() Guru ![]() Joined: 07/10/2020 Location: CanadaPosts: 514 |
I've been using VS Code for over 8 years. I love the Jetbrains' IDEs like CLion, PyCharm, WebStorm, IntelliJ, etc, but they are heavy, and I'm reserving them for complex projects. For anything else I use VS Code. My MM Basic game port Knightmare was written entire using VS Code. I did same adjustments to make the editor to recognize .inc files as Visual Basic code. It works pretty well. |
||||
karlelch![]() Senior Member ![]() Joined: 30/10/2014 Location: GermanyPosts: 254 |
I just did another attempt to generate syntax highlighting for MMBasic with Claude and -- expect for a rather lengthy dialog about how to install it properly -- it worked pretty well. Since the complete PDF was too large for Claude's context, I gave it only the pages that list and explains the commands. Note that I used Revision 0 (10 July 2025) of the manual (is there a newer one?), hence some recent commands may be missing. The extension is contained in this zip: mmbasic_vscode_syntax-1.0.0.zip After unzipping it somewhere, 1) in VS Code, press Ctrl+Shift+P 2) Type: Extensions: Install from VSIX 3) Navigate to the unzipped folder 4) Select mmbasic-1.0.0.vsix 5) Click Install 6) Restart VS Code when prompted The highlighting looks fine but I did not check it yet in detail. Cheers Thomas |
||||
Bill.b![]() Senior Member ![]() Joined: 25/06/2011 Location: AustraliaPosts: 238 |
I have been using VS code for about 5 years with the platformIO add on to edit and compile Marlin firmware for my older 3d printers. In the interests of the environment, this post has been constructed entirely from recycled electrons. |
||||
zeitfest Guru ![]() Joined: 31/07/2019 Location: AustraliaPosts: 608 |
The install looks like it expects Git and so on to be used and installed as well, so there are some caveats. The install itself is easy though. On one hand the assumptions are a bit exasperating and it makes the learning curve steeper, however I do need to modernize a bit so I will go along with it. (grumble, moan, whine ![]() "Google Copilot" which is included as a AI assistant. There are plenty of extensions to handle most languages so that is good. Good idea to use Claude...I wonder if these AI tools accept Backus-Naur language definition (if it is still used) ? |
||||
Mixtel90![]() Guru ![]() Joined: 05/10/2019 Location: United KingdomPosts: 8156 |
If anything includes AI then I don't want it. Didn't ask for it. Don't trust it. Will only switch it off. Signed: Mr. Grumpy :) Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
karlelch![]() Senior Member ![]() Joined: 30/10/2014 Location: GermanyPosts: 254 |
At the beginning, it also tended to annoy me, with its constant suggestions and nagging about my code .. but fortunately, there is a button to switch if off ![]() Git is useful to manage projects, but you don't need to install it, I think. On the positive side -- if you want to use AI -- connecting your GitHub account gives you access to co-pilot, if you have it there (it comes with some GitHub accounts, e.g., the educational ones). |
||||
karlelch![]() Senior Member ![]() Joined: 30/10/2014 Location: GermanyPosts: 254 |
@Bill.b Nice dog! |
||||
pwillard Guru ![]() Joined: 07/06/2022 Location: United StatesPosts: 317 |
I dunno, I sort of use it for everything. |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |