CLion 2024.1 levels up the CMake editing experience, unlocks multi-process debugging capabilities, assists with more accurate hardware descriptions in device tree files, and brings significantly improved integration with version control systems.
Do you find editing CMake scripts challenging? With CLion 2024.1, you get enhanced writing assistance for CMake targets for even easier script editing. Now, CLion suggests live templates to create new targets, as well as code completion, navigation, and Find Usages for target names.
We’re constantly improving CLion’s integration with debugger backends. With this latest release, it’s possible to debug multiprocess targets in CLion. GDB users will now benefit from bundled support for the latest GDB 14.1 version. A new option was also added to boost GDB indexing, thus boosting debugging performance.
We continue to improve CLion’s Meson support. This 2024.1 version comes with a Meson tool window with many useful commands, custom settings for Meson, and the option to create new Meson projects from the New Project wizard in CLion.
VCS support in CLion and other JetBrains IDEs has been updated significantly with our enhanced diff viewer, improved branch search functionality, a streamlined code review workflow, and many other useful improvements throughout the whole subsystem.
Do you need a new CMake target? New live templates have been added that automatically
create add_executable
(type exe
) and add_library
(type lib
) CMake commands for you.
CLion now completes target names in CMake commands. This makes it easier for you to link files to the targets and perform other target-related operations.
Looking for a place where a certain target is defined? Now, CLion lets you navigate
to the corresponding add_library
or add_executable
commands
from the target usage in just one click.
Rely on Find Usages (Alt+F7) to list all usages of the target in your project. The items in the tool window will be sorted into usages and target definitions.
When CMake fails to load because you don’t have the minimum required version of
CMake enabled, CLion suggests a fix in the CMake tool window. Click
Fix...
and CLion will update the cmake_minimum_required
command for you.
You can now configure which CMake preset types to import into CLion. For example, you can choose Configure option from the import list. To do so, use Settings/Preferences | Advanced Settings | CMake | Automatically import CMake Presets.
Finally, CLion 2024.1 bundles CMake v3.28.
Since v2023.3, CLion has included support for the
Meson
project model. It now comes with a Meson tool window
(View | Tool Windows | Meson). There, you can find the list of build targets and
useful commands like clean
, install
, test
, and more.
Starting a new Meson project? The New Project wizard in CLion now comes with an option to help streamline the process. File templates for this new Meson project can be configured in Settings/Preferences | Editor | File and Code Templates | Meson Project.
If you need to specify the custom path to the Meson executable, you can now do so in CLion’s Meson settings. You can also use the Setup options field to provide any additional Meson commands.
In CLion, it’s now possible to debug multiprocess targets. Our latest release lets you update the follow and detach policies from the context menu. This works on Linux (with LLDB and GDB) and for remote toolchains (WSL, remote, and Docker).
Learn more about these settings in our documentation.
If you develop for hardware and write device tree files, you can benefit from the device tree file coding assistance in CLion that was added in v2023.3. In this new version, we improved the code analysis in device tree files and synchronized CMake with the Zephyr settings by default.
To validate node properties with binding, there are new checks for invalid property types and required or undeclared properties.
A Duplicate element inspection detects duplicate elements inside the device tree nodes. This could either be two or more properties with the same name or two or more nodes.
When an enumeration type is used, CLion validates the values for such properties and reports the unpermitted values.
To help you write device tree files, we’ve added code completion for the root node.
The new terminal (Beta) is now available in JetBrains IDEs v2024.1. You can switch between the old and new terminal in Settings/Preferences | Tools | Terminal | Enable New Terminal.
We expanded the feature set, improved the visual appearance, and aligned it with the IDE’s refreshed look and feel.
It supports only Bash, Zsh, and PowerShell, with other shells in development. Read on for more details.
This release brings updates to VCS support in CLion, including:
Learn about all the changes here.
Navigating through new codebases and large files can be tricky. To help you with that, the editor now has sticky lines while scrolling. This feature keeps key structural elements, like the beginnings of classes or functions, pinned to the top of the editor as you scroll. This way, scopes are always in view, and you can promptly navigate through the code by clicking on one such line.
Previously, CLion introduced the ability to zoom in and out of the entire IDE, adjusting the size of all UI elements simultaneously. However, the initial scaling range was limited to between 100% and 200%. Now we have incorporated a new option allowing users to scale down the IDE to 90%, 80%, or 70%, offering an extended range of customization options.