The choice is often a personal preference, here we list some instructions and tips on getting editors and IDEs working well with KDE projects.
The choice is often a personal preference, here we list some instructions and tips on getting editors and IDEs working well with KDE projects.
==Visual Studio Code (VSCode)==
VSCode is a very popular cross-platform, general-purpose, open source IDE. Thanks to its powerful extensions systems it supports many languages as well as deep customization options for themes, fonts, keyboard controls, and more.
===Installing===
VSCode is available as a deb, rpm, portable, and in the Arch User Repository.
https://code.visualstudio.com/Download
===Extensions===
Once VSCode is installed we need some extensions to enable support for the languages to work on KDE projects.
# [https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools-extension-pack C/C++ Extension Pack] - Enables support for C++ and CMake.
# [https://marketplace.visualstudio.com/items?itemName=tonka3000.qtvsctools Qt tools] - Enables some Qt support.
# [https://marketplace.visualstudio.com/items?itemName=bbenoist.QML QML] - Enables syntax highlighting for QML.
Optional:
[https://zealdocs.org/ Zeal] is an application that allows browsing documentation offline.
[https://marketplace.visualstudio.com/items?itemName=deerawan.vscode-dash Dash] is a VSCode extension that enables a hotkey (Ctrl + H) to instantly open the item under the cursor in Zeal.
These paired together make looking up documentation while working on code very quick and easy.
===Configuration===
VSCode holds settings related to specific projects in the top-level project directory, in a hidden <code>.vscode</code> folder.
We will use Dolphin as an example of where to add our project configuration files:
====settings.json====
This config specifies the correct build directory.
Create the file <code>settings.json</code> at <code>~/kde/src/dolphin/.vscode/settings.json</code>