Eclipse's Ctrl+click in Visual Studio?

后端 未结 13 2172
伪装坚强ぢ
伪装坚强ぢ 2021-01-30 09:40

After working for a few days with Eclipse Java I totally got addicted to pressing Ctrl and clicking on an identifier to go to its definition. Since then I\'ve been lo

13条回答
  •  孤街浪徒
    2021-01-30 10:29

    I'll answer the commentors who asked about the difference between Ctrl-click and F12.

    Ctrl-click workflow:

    • Move hand to mouse
    • Move mouse to hover over variable name
    • Other hand holds down Ctrl key while you click
    • Move mouse to position cursor, highlight, right-click, or whatever
    • Move hand back to keyboard to continue typing

    F12 workflow

    • Move hand to mouse
    • Mouse mouse to hover over variable name
    • Move hand back to keyboard
    • Hit F12 key
    • Move hand back to mouse
    • Move mouse to position cursor, highlight, right-click, or whatever
    • Move hand back to keyboard to continue typing

    If you assume the cursor is already positioned on the desired variable, F12 is better. However, that's rarely the case. Also, if you stop after this specific action, assuming you want hands back at the keyboard, the cost is the same. But if you keep in mind that you probably had a reason for wanting to go to the definition, the Ctrl-click workflow saves you an instance of moving between the keyboard and mouse.

提交回复
热议问题