CLion 2022.3

改進了簡單專案和基於 CMake 的複雜應用程式的使用者體驗。
12月 2, 2022
新版本

特性

  • CMake
    • CMake Debugger - Added the ability to debug CMake scripts as regular code. Set breakpoints, step through code, and watch CMake variables and targets.
    • Code assistance in CMakeLists.txt - The CMake file editor in CLion has been enhanced with new abilities to help you edit CMakeLists.txt files more easily:
      • CMake font and color settings.
      • The ability to expand and collapse various code regions in CMake.
      • Code completion for find_package for packages bundled with CMake.
      • CMake command documentation in code completion.
      • CMake structure view.
      • Strikethrough highlighting of deprecated commands in CMake.
    • Add to CMake Project - Added a new 'Add to CMake Project' quick-fix shown on the notification bar which will help you add a file to the existing CMake target. The action is also available in the project view context menu when called on the file.
    • CMake targets with root privileges - If you add a CMake target as an extra task before starting the selected run/debug configuration, the target can now be run with administrative privileges.
  • C++20 modules
    • Added module support:
      • Syntax highlighting - CLion now collects and parses information about modules from all .ixx, .cppm, and .mxx files in the project. Then it provides syntax highlighting for the new module keywords like import, export, and module.
      • Completion - CLion now provides code completion for symbols from modules.
      • Navigation - With CLion, you can now navigate to declaration/definition for symbols from modules in one click.
      • Find Usages and refactorings - Both Find Usages and refactorings work as usual inside modules. An early version of the Rename, Change Signature, and Extract refactorings that cross module boundaries work only for files opened in CLion.
  • Single file
    • Added a new option to compile and run a single C or C++ file.
    • A new C/C++ File configuration - A new run/debug configuration type (C/C++ File) allows you to quickly configure the toolchain, source files, and compilation options. When created, it allows you to compile and run the selected files.
    • Run icon - When you open a C/C++ file or a folder via the Open action in the Welcome wizard, the run icon appears in the left gutter and allows you to run or debug the current file.
  • Linker scripts
    • Added Linker Script (LD) language support, which includes:
      • Code highlighting in LD files, which you can configure in Settings | Editor | Color Scheme | LinkerScript.
      • Code completion.
      • Structure view for top-level commands.
      • Code folding for sections, memory, and phdrs.
      • Code commenting / uncommenting.
      • Find Usages for simple cases.
  • Clang-Tidy enhancements
    • The Clang-Tidy binary has been updated to v16.0.0 in this release, bringing new checks and various LLVM fixes.
    • The Clang-Tidy settings have been updated and the detailed documentation is now rendered on the left-hand side.
    • In the Clang-Tidy tooltip in the editor, click on the kebab (three dots) icon on the right-hand side and choose Show Inspection Description to get a short description of a Clang-Tidy check.
  • Documentation
    • The size of the type - The Quick Documentation popup now shows the size of the type. Similar to other inspections, this one uses the flags from the project model that CLion passes to Clangd. This allows the IDE to calculate the correct size even in cross-compilation cases.
    • Documentation at cppreference.com - CLion can now help you learn more about the standard functions, structures, and other parts of your code base. Use the link in the Quick Documentation popup or the External documentation (Shift+F1) action to open cppreference.com articles in a web browser. This works for anything with a definition in the std namespace that is likely to have documentation there.
  • Debugger
    • Function return value - When you step out of a function that has a non-void return type, CLion now shows its return value in the debugger tool window’s Variables view. On Apple macOS and Linux, the bundled LLDB version has been updated to LLDB 15.
  • RTOS thread view
    • When debugging with RTOS, CLion provides a view of tasks (threads). Starting with this release, this also works for Symmetric Multiprocessing (SMP) if the processor cores are identical.
    • In addition to FreeRTOS and Zephyr, the view has also been enabled for Microsoft Azure RTOS.
  • New UI
    • Added a new UI - Modern and clean, it aims to reduce visual complexity, provide easy access to essential features, and progressively disclose complex functionality as needed. Tool windows and features specific to C and C++ are now ready for the new UI. Switch to it in Settings | Appearance & Behavior | New UI.
  • Settings synchronization
    • A new solution for synchronizing settings is now available. The new Settings Sync plugin is capable of syncing all shareable settings from the platform, bundled plugins, and third-party plugins. The settings are stored in the cloud attached to the user’s JetBrains Account. If you use different IntelliJ-based IDEs associated with the same user account, your settings will be automatically synced.
  • Profiling
    • When profiling on a remote or embedded target, you can now import the results locally in CLion via Run | Open Profiler Snapshot. Jump to Source navigation works correctly for profiling data and continues to do so after import/export.
  • Remote and WSL2
    • CLion now provides an alternative way to work with projects in Microsoft Windows Subsystem for Linux (WSL) 2 via remote development. Instead of running a full IDE on Windows, your IDE backend will launch directly in WSL2 itself. Then you can connect to it the same way you would connect to any remote machine when using remote development.
    • To improve the performance of remote development with local sources, CLion now uses pigz (a multithreaded gzip implementation) for compression on the remote host to synchronize the header search paths back to the local host.
    • For remote development with local sources, you can avoid the CMake build folder synchronization after CMake reload by selecting the Local or mounted folder deployment type in Settings | Build, Execution, Deployment | Deployment.
  • Other enhancements
    • CLion now bundles all default web development plugins from WebStorm (NodeJS, Karma, AngularJS, and others).
    • IAR language extensions are now supported in CLion. The code is parsed and highlighted correctly.
    • Now distributing installers for Windows ARM64. Native tools like Clangd are not yet ported to the platform, so installers only work for Windows 11, which is able to run both x64 and x86 binaries.
CMake file editor

CLion

用於 C 和 C++ 的跨平臺 IDE。

有任何疑問嗎?

Live Chat現在與我們的JetBrains 專家即時聊天詢問。