extract to variable - how to configure suggestions ?
已回答
Since a few days intellij gives me variables with both camelCase and underscore_case for variable name suggestion when extracting a variable. I don't know what I might have change that caused this change.
For example:
How can I configure Intellij to not have the propositions with '_' in the name ?
I've searched in the config options without any succes.
请先登录再写评论。
Could you clarify what programming language do you use? Check setting under Settings/Preferences | Editor | Code Style | language_name | Code Generation
This is an issue with Java.
Ok I understood the issue: when the code contains a string with underscore, then I got suggestions with '_' in it.
For example an extraction for this statement:
will prompt foo_bar as a first proposition.
So it's not really an issue and it makes sense for constant, but I would like to get rid of these suggestion for variables.
I've checked the conf, but I can't find anything relevant here.
we created a feature request for this, you can follow it here https://youtrack.jetbrains.com/issue/IDEA-297161