Is there any way to reorganize the create menu?

I use this a lot:

But 99 times out of 100, I I'm looking for the "create field", which is way down on the bottom. I don't think I have ever used Create local variable, or any of the create parameter actions, which are the outermost ones.

Is there any way for me to customize which order these things are in? Or any way for me to quickly run "create field" without having to arrow key my way through this menu?

1 comment
Comment actions Permalink

Hello,

Regrettably, there is no way to reorder the quick-fix options in this popup, same as to bind a hotkey for a specific quick-fix.

As a workaround, I suggest using the code style (`File | Settings | Editor | Code Style | C# | Naming`). There is a rule `Instance fields (private)` which has the default prefix set to `_` (you can change it to whatever you wish, for example, `c_` or leave it as it is). In that case, once you type the non-existing field according to this rule (for example c_health), the first suggestion for quick-fix will be `Create field c_health`.

You might be interested this feature request on our tracker related to binding a hotkey to a specific quick-fix. We would appreciate it if you could upvote the issue to demonstrate additional interest.

0

Please sign in to leave a comment.