Skip to content

Key scheme Microsoft Visual Studio does not apply on Open Declaration #497

@ghentschke

Description

@ghentschke

The call hierarchy is great!! BUT, it's a real pain to navigate and has some issues. Arrow keys don't work.

You mean this behavior (tested under windows 11): https://github.com/user-attachments/assets/2d712902-6c14-44f7-9216-f9f26f942ac6

Yes, that behavior is desired. However, I might have multiple call sites for a function, as well as it may be several function calls deep. The focus is lost almost immediately, and then arrow keys are no longer operable until I again click into the call hierarchy pane.

A little confused by short-cut keys. Previously had "Open Declaration" bound to F12.

In Eclipse CDT? AFAIK the Eclipse default is F3. I know F12 is the default in VS Code.

Yes, I use the "Microsoft Visual Studio" key bindings Scheme in the "General->Keys" preferences area. See below for more details

however, pressing F3 (which should theoretically behave the same as clicking the context menu) actually takes me to the enclosing function, and not the one my cursor is on.

Hm, I cannot reproduce that. Can you place a small code snippet to illustrate this behavior?

It turns out I have "F3" bound to "Find Next" as is the default behavior for Microsoft Visual Studio key bindings, and it so happens that I had previously searched for the text initialize() so that when I pressed F3 it would search and find that text, which happened to be the enclosing function. So the real issue is that I can't seem to get the "Open Declaration" function bound to F12 through any means. I attempted to change all possible instances of "Open Declaration" to use F12 in the Windows->Preferences->General->Keys area, but in no case could I get it to work. The right-click context menu always shows F3 as the key binding, and F12 never works.

Originally posted by @kevin071586 in #461

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions