Site Tools


pub:software:development:vscodium:cpp:get_started

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pub:software:development:vscodium:cpp:get_started [2026/08/26 04:14] adminpub:software:development:vscodium:cpp:get_started [2026/08/26 07:49] (current) – [Get started with VSCodium C++] admin
Line 1: Line 1:
-====== Get started with VSCodium C++ ====== +====== Get started with C++ and VSCodium ====== 
-This page describes how to get started with C++ development, first using a simple makefile, without a specific editor, then using the same makefile within [[https://vscodium.com/|VSCodium]] with some of its supporting features.+This page describes how to get started with C++ development, first using nothing but a cpp file and a simple makefile, created without a specific editor. Once that worksit continues with describing how to use that same makefile within [[https://vscodium.com/|VSCodium]]. An advantage to use VSCodium is that it offers practical guidance during writing, helping to write code faster.
  
  
Line 124: Line 124:
  
 ^ //(Alternative) Install C++ extensions from the command line//  ^ ^ //(Alternative) Install C++ extensions from the command line//  ^
-| To kind of automate this and prevent VSCodium to download additionally a 32MB file once CodeLLDB is installed (and prevent a required restart of this extension), you can install all extensions directly from the command line. First download the vsix extensions. For this create a target directory for your extension (vsix) files. Use for example $HOME/Maintenance/apps/VSCodium_vsix/\\     • From [[https://github.com/vadimcn/codelldb/releases]] download the latest "codelldb-linux-x64.vsix" to the target directory\\     • From [[https://marketplace.visualstudio.com/_apis/public/gallery/publishers/llvm-vs-code-extensions/vsextensions/vscode-clangd/0.3.2/vspackage]] ((Get the most recent version from the following page: [[https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.vscode-clangd]] and find the latest version below the text "More Info")) download the vsix file to the target directory\\ Then instead install the file with something like:\\ <code bash>+| To kind of automate this and prevent VSCodium to download additionally a 32MB file once CodeLLDB is installed (and prevent a required restart of this extension), you can install all extensions directly from the command line. First download the vsix extensions. For this create a target directory for your extension (vsix) files. Use for example $HOME/Maintenance/apps/VSCodium_vsix/\\     • From [[https://github.com/vadimcn/codelldb/releases]] download the latest "codelldb-linux-x64.vsix" to the target directory\\     • From [[https://marketplace.visualstudio.com/_apis/public/gallery/publishers/llvm-vs-code-extensions/vsextensions/vscode-clangd/0.6.0/vspackage]] ((Get the most recent version from the following page: [[https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.vscode-clangd]] and find the latest version below the text "More Info")) download the vsix file to the target directory\\ Then instead install the file with something like:\\ <code bash>
 codium --install-extension $HOME/Maintenance/apps/VSCodium_vsix/codelldb-linux-x64.vsix  codium --install-extension $HOME/Maintenance/apps/VSCodium_vsix/codelldb-linux-x64.vsix 
-codium --install-extension $HOME/Maintenance/apps/VSCodium_vsix/llvm-vs-code-extensions.vscode-clangd-0.3.2.vsix+codium --install-extension $HOME/Maintenance/apps/VSCodium_vsix/llvm-vs-code-extensions.vscode-clangd-0.6.0.vsix
 </code> | </code> |
  
 The extension clangd depends on the clangd language server [[https://clangd.llvm.org/|clangd]], which is confusing, since both the language server and the extension have the same name. Before the extension can be used, the language server needs to be installed. To automatically install using the command line, jump to the instruction "... Install C++ extensions from the command line". Otherwise proceed as following to install manually: The extension clangd depends on the clangd language server [[https://clangd.llvm.org/|clangd]], which is confusing, since both the language server and the extension have the same name. Before the extension can be used, the language server needs to be installed. To automatically install using the command line, jump to the instruction "... Install C++ extensions from the command line". Otherwise proceed as following to install manually:
  
-Download clangd-linux-21.1.0.zip from [[https://github.com/clangd/clangd/releases]].+Download clangd-linux-22.1.6.zip from [[https://github.com/clangd/clangd/releases]].
  
 And extract this to: And extract this to:
  
-  $HOME/.config/VSCodium/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/21.1.0/clangd_21.1.0/+  $HOME/.config/VSCodium/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/22.1.6/clangd_22.1.6/
  
 Then configure the clangd.path in VSCodium to: Then configure the clangd.path in VSCodium to:
  
-  $HOME/.config/VSCodium/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/21.1.0/clangd_21.1.0/bin/clangd+  $HOME/.config/VSCodium/User/globalStorage/llvm-vs-code-extensions.vscode-clangd/install/21.1.6/clangd_22.1.6/bin/clangd
  
 ^ //Install/configure clangd language server, titleBarStyle and telemetry with VSCodium automatically//((References: https://ubuntu-mate.community/t/vscode-kills-panel/29174/2))  ^ ^ //Install/configure clangd language server, titleBarStyle and telemetry with VSCodium automatically//((References: https://ubuntu-mate.community/t/vscode-kills-panel/29174/2))  ^
Line 287: Line 287:
  
 <columns 100% *100%*> <columns 100% *100%*>
-|  {{:software:programming:vscodium_project_first_view.png?direct&400|}}  |+|  {{:pub:software:development:vscodium:cpp:vscodium_project_first_view.png?direct&400|}}  |
 |  //VSCodium first screen after opening via command line"//  | |  //VSCodium first screen after opening via command line"//  |
 </columns> </columns>
Line 333: Line 333:
  
 using namespace std; using namespace std;
-using fmt::format; // or specifically fmt::v9::format +using namespace fmt; // Note that fmt::format or fmt::print will not work with V10 anymore as it did with v9
-using fmt::print; // or specifically fmt::v9::print+
  
 int main(int argc, char** argv) int main(int argc, char** argv)
Line 357: Line 356:
 #include <iostream> #include <iostream>
  
-using fmt::print; // or specifically fmt::v9::print+using namespace fmt; // Note that fmt::format or fmt::print will not work with V10 anymore as it did with v9
  
 int main() int main()
pub/software/development/vscodium/cpp/get_started.1787742854.txt.gz · Last modified: by admin