No "Go to Declaration" anymore?

已回答

If I recall right, until recently default behavior of "Ctrl + Click" on a member in a cpp was to navigate to the definition in the hpp. But seems like it changed to "Go to Declaration or Usages" and there is no "Go to Declaration" (only) navigation option even if we want to add a custom shortcut. Is this correct or is there a way to have a "Go to Declaration" shortcut?

When a method is used in many places in a large code base, it take a while for the list to populate and "find usages" and browsing makes more sense.

0

Hi!

You can change this behavior in File | Settings | Editor | General > Go to Declaration or Usages.

See the details in this blog post: https://blog.jetbrains.com/clion/2020/07/clion-2020-2-eap-cpp20-cmake-unit-testing/

0

请先登录再写评论。