Coderunner C++ standard selection - vscode-code-runner

Coderunner plugin fails to compile&run C++11 code.
I tested, and its not affected by tasks.json or c_app_properties.json.
How to change C++ standard used?

Related

How to Update GCC to include C++20

This is likely a straightforward fix, but I need to upgrade my g++ compiler to include C++ 20 libraries such as <span> and <range> on Visual Studio Code but I am confused about how to do that.
From what I've looked up, to allow Visual Studio Code to compile with C++20 libraries, I need to run mingw-get update but I have no idea where I actually run that command to update the compiler for Visual Studio Code.
You need a recent version of GCC+MinGW-w64 that supports C++20.
You can get it via MSYS2's package manager pacman, or if you don't need MSYS2 you can get a standalone version from https://winlibs.com/.

SuiteScript with Intellisense in VS Code

I have the latest Visual Studio Code.
I have installed the latest SuiteCloud Extension for VS Code.
There is no intellisense.
I have also installed the SuiteNippets extension -- which is ok--but not full intellisense.
I am baffled as to why this is missing. Do I need to import/reference something from NetSuite--despite using their extension already?
How do I enable intellisense in VS Code for SuiteScript?
See my previous answer to a similar question. It's possible to use the Head-in-the-Cloud bundle to create javascript transpiled from TypeScript files. The code completion is good and you have the added benefit of type checking.

Visual Code Studio with C/C++ extension: How to disable warnings

I'm working with Zephyr OS in the Visual Code Studio IDE.
Zephyr uses a lot of Macros but the C/C++ extension does not like that and throws Warnings.
One example of a warning you can see here on the screenshot "The function call is not allowed in a constant expression. C/C++(59)"
Do you probably now where I can add that warning to a kind of ignore/suppress list?
Many thanks!

How to Run C and C++ Programs on VS code?

As per my question, I want to compile & run c/c++ program directly from Visual Studio Code (vscode).
so is there anything like live server (like HTML) when I save file it gets compiled and runs automatically...
C++ support for Visual Studio Code is currently experimental. You may have look at this extension to accomplish what you ask.

How to configure Visual Studio Code to build a project with IAR compiler?

I want to use Visual Studio Code as my main IDE, but I want to compile my code with IAR's compiler.
How could I configure VSCode ?
I found this extension but the documentation is too poor.
Yes, the extension politoleo.iar is indeed NOT good.
-> I found a better one (will try it in future by myself):
VSCode plugin: pluyckx.iar-vsc
IAR For Visual Studio Code - Visual Studio Marketplace
Good document
Welcome to IAR-VSC’s documentation! — IAR-VSC 1.2 documentation
doc's Github source: pluyckx/iar-vsc
IAR related official Technical Note
Using Visual Studio Code with IAR Embedded Workbench
Enjoy it !
There are now two official IAR plugins for VSCode which make things much easier:
For building and development: https://marketplace.visualstudio.com/items?itemName=iarsystems.iar-build
For debugging with C-Spy: https://marketplace.visualstudio.com/items?itemName=iarsystems.iar-debug
https://www.iar.com/knowledge/support/technical-notes/general/using-visual-studio-code-with-iar-embedded-workbench/
What I did is setting some environment variables in settings.json;
then in tasks.json I created shell tasks that call the IarBuild.exe & IarIdePm.exe with appropriate values (see the documentation on the command line options)...
So now, I can use VSCode for navigation & editing, but the compilation is done by the EWARM.
The only thing that I haven't figure out yet is how to make C-Spy work from within VSCode...
Currently when I want to debug, I just launch the EWARM and debug from there...
here is a screenshot:Screenshot of settings.json and tasks.json
For this, you can port you project to the custom build system (non iarbuild), e.g. a best choose is the Qbs. The Qbs support a lot of architectures and the toolchains (include IAR, KEIL and so on). In this case you can then use any IDE which support the Qbs, e.g. such as VSCode or QtCreator, and to open your project in any of these IDEs.
Both IDEs support only the GDB debugging, because the C-Spy debuger is a proptietary technology, which has not the public datasheets.