Can I change suggestIndexName() in Clion?

已完成

Hi. recently, my CLion always use "kI" as index name.

 

I made a new cpp project, and type "for" in main functions, then press enter to use auto completing for-loop. (It is called 'live-template" I think)

Then, below codes appeared. always exactly like this: 

 

```

int main() {
for (int kI = 0; kI < ; ++kI) {

}
cout << "Hello, World!" << endl;
return 0;
}

 

lower k with upper I.

If i do one more time, this time "kJ" showed up.

 

can I fix it?

 

I found that i use some live template like this :

 

 

CLion official docs said "suggestIndexName()" use i, j, or K if possible". So i cannot imagine what's really going on.

 

0

Hello!

Have you changed anything in Preferences | Editor | Code Style | C/C++ > Naming Convention?

1

Thank you so much. there it is! 

 

I remembered that somedays ago i **tried** google code style on c/cpp. I didn't it changed even that 'variable prefix' with other things!

from Preference | Editor | Code Style, I reset all of my settings then the problem had gone. Thank you so much!

0

请先登录再写评论。