I use Clion. How can I navigate back if I follow links by pressing ctrl+mouse click? If I press ctrl+mouse click on a function, I come to the declaration. But how to I navigate back? On Windows I think it was ctrl+l.
Asked
Active
Viewed 1,412 times
1 Answers
3
In CLion v2016.1.1, when you ctrl+mouse-click on a function it will open a new tab in which you can find the function declaration (this works if function usage and declaration/definition are in differents file).
To come back you only have to close the tab.
Instead, if you want to come back to a previous view in the same file you can select from menu Navigate > Back.
There is also a shortcut ctrl+alt+← (left), but there is problem with it: it won't work because it is caught by Unity when you want to change a workspace. If you want to use a shortcut you can change the keybinding in CLion preferences. To do so follow these steps:
- Open keymap preference: from menu select
Edit>Settings...>Keymap - Look for
backin the search bar. - Watch at results and on
Navigateentry right-click and chooseAdd Keyboard Shortcut - Fill the new window with your preferred shortcut and select
OK
Now you should be able to use the shortcut to come back to a previous view.
I hope this could help you.
Danibix
- 2,185