当前位置: 首页 > news >正文

CLion Inlay Hints - 取消 CLion 灰色的参数和类型提示

CLion Inlay Hints - 取消 CLion 灰色的参数和类型提示

  • 1. Parameter hints for C/C++
    • 1.1. Toggle parameter hints globally
  • 2. Type hints for C/C++
    • 2.1. Toggle type hints globally
  • 3. Toggle inlay hints globally
  • References

https://www.jetbrains.com/help/clion/2024.3/inlay-hints.html

Inlay hints are special markers that appear in the editor and provide you with additional information about your code, like the names of the parameters. Other types of hints inform you about annotations, usages, and so on (depending on the language).

In inlay hints settings, you can configure what types of information you want to get in hints.

For more information about the C/C++ specific hints, refer to Parameter hints for C/C++ and Type hints for C/C++.

在这里插入图片描述

The list of available languages, contexts, and hint types depends on the installed/enabled plugins.

在这里插入图片描述

1. Parameter hints for C/C++

https://www.jetbrains.com/help/clion/2024.3/parameter-hints.html

在这里插入图片描述

1.1. Toggle parameter hints globally

Parameter hints are enabled by default. To hide them, use one of the following options:

  • Go to Settings | Editor | Inlay Hints | Parameter names and clear the C/C++ checkbox or specific checkboxes in the node.

在这里插入图片描述

  • In the editor, right-click a parameter hint and select Disable hints from the context menu.

在这里插入图片描述

2. Type hints for C/C++

https://www.jetbrains.com/help/clion/2024.3/type-hints.html

在这里插入图片描述

2.1. Toggle type hints globally

Type hints are enabled by default. To hide them, use one of the following options:

  • Go to Settings | Editor | Inlay Hints | Types and clear the C/C++ checkbox to hide all the type hints or a particular checkbox to hide only some of them.

在这里插入图片描述

Disabling Variables doesn’t affect Obvious Types and Lambdas, they should be disabled separately if required.

  • In the editor, right-click a hint and select the option from the context menu:

在这里插入图片描述

3. Toggle inlay hints globally

File -> Settings -> Editor -> Inlay Hints
在这里插入图片描述

References

[1] Yongqiang Cheng, https://yongqiang.blog.csdn.net/

http://www.lryc.cn/news/505873.html

相关文章:

  • 2025山东科技大学考研专业课复习资料一览
  • vue3 v-model实例之二,tab标签页的实现
  • 东方通TongWeb7.0.4.9M4部署SuperMap iServer 11.2.1
  • QT绘制同心扇形
  • 2012年西部数学奥林匹克试题(几何)
  • 8位移位寄存器的verilog语言
  • 【苍穹外卖】学习心得体会-随笔
  • MySQL学习之表的增删改
  • 电脑excel词典(xllex.dll)文件丢失是或损坏是什么原因?“xllex.dll文件缺失“要怎么解决?
  • 【CSS in Depth 2 精译_084】第 14 章:CSS 蒙版、形状与剪切概述 + 14.1:CSS 滤镜
  • gorm源码解析(四):事务,预编译
  • 前端优雅(装逼)写法(updating····)
  • 黑马Java面试教程_P7_常见集合_P4_HashMap
  • 使用 CFD 加强水资源管理:全面概述
  • XXE练习
  • R语言读取hallmarks的gmt文档的不同姿势整理
  • 【Nginx-4】Nginx负载均衡策略详解
  • Python 的 Decimal的错误计算
  • 【韩顺平 Java满汉楼项目 控制台版】MySQL+JDBC+druid
  • 【HAL库】STM32CubeMX开发----STM32F407----Time定时器中断实验
  • react18+ts 封装图表及词云组件
  • 图像根据mask拼接时,边缘有色差 解决
  • 17、ConvMixer模型原理及其PyTorch逐行实现
  • Spring整合Redis基本操作步骤
  • STM32使用SFUD库驱动W25Q64
  • ArKTS基础组件
  • 如何理解TCP/IP协议?如何理解TCP/IP协议是什么?
  • 如何使用 Python 连接 SQLite 数据库?
  • 【博弈模型】古诺模型、stackelberg博弈模型、伯特兰德模型、价格领导模型
  • 单片机:实现花样灯数码管的显示(附带源码)