gpt4 book ai didi

c++ - 防止 CLion 在大括号上重新格式化代码

转载 作者:行者123 更新时间:2023-11-30 03:42:04 28 4
gpt4 key购买 nike

如果我有:

<code>
<more code>
<some more code>

如果我想把<more code>在它自己的范围内,我这样做:

<code>
{
<more code>
| <-- cursor position
<some more code>

我一点击} , CLion 重新格式化 <more code>根据其风格指南。

我不希望它这样做。我如何防止它这样做?

最佳答案

根据 Alexey Utkin在 JetBrains 论坛上:

You need to switch off the option [ ] Reformat Block on typing '}' The option is in File | Settings...| Editor | General | Smart Keys dialog.

Please, read more here: https://www.jetbrains.com/help/idea/2016.1/smart-keys.html

关于c++ - 防止 CLion 在大括号上重新格式化代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37014246/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com