为什么我用分号结束一行后CLion不会自动放置空格?

问题描述 投票:1回答:1
#include <stdio.h>

int main(){
    int a=0;
    double b=25.8;
    char *s="Hello!";
    int a2=45;
    if(a==a2){
        printf("No!");
    }

    return 0;
}

看起来就像上面,它应该在“ =”或“ ==”之前和之后的空格。但是在Jetrains Rider中,它工作正常,我不知道CLion为什么不能。我认为我的设置正确,甚至都没有更改。

My Code Style setting

styles editor settings clion spaces
1个回答
0
投票

为了重新格式化代码,请按Ctrl

+ Alt
© www.soinside.com 2019 - 2024. All rights reserved.