-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
keyboard shortcut to jump to next/previous line with the same indentation level #22133
Comments
Hi @hprodh thank you for the feedback! Maybe something that could be useful for you then is the symbol switcher? With it, you can jump between definitions (functions, classes, methods, etc): To show the symbol switcher you can use the Ctrl +Alt + P shortcut. Let us know if the info above helps! |
Hi @dalthviz, Yet I find one problem with the use of the symbol finder : when opening it with Ctrl+Alt+P, the editor cursor goes to the first symbol. This throws back to the beginning of the file. |
Thank you @hprodh for the extra feedback! I would say that makes sense to me 👍 Also, thinking about not changing the line where you are, I remembered that you can also activate a selector for classes/functions by checking Anyhow, in general, what do you think about these ideas @spyder-ide/core-developers (shortcuts to navigate the next/previous symbol and improvements to the symbol finder/switcher) ? |
Yes, this selector is very close to what the symbol switcher is, yet they each have a drawback for "fast-keyboard-use-only" :
I think it is better to fix the opening behavior of the symbol switcher. This functionality could then serve both as a contextual outline explorer and fast navigator, without having to change the default spyder configuration, just with the keyboard shortcut. Additionally, a simple "bookmark" comment, if recognized as a symbol, would maybe close the issue #910. |
Thank you for giving the selector a try @hprodh !
Just in case, there is already a mark/comment you can use to go to a specific place in your code. To use that functionality you just need to write Those mark comments work for the symbol finder and also for the Outline pane |
I have opened the new issue #23138. I am closing this one. |
I have a feature/enhancement request for the editor.
I would like to navigate faster within code using the keyboard (typically from class to class or function to function, etc...).
One perfect feature would be to have a keyboard shortcut to make the cursor jump to the next or previous line having the same indentation level as the current one. So that the shortcut would allow to easily jump indented blocks.
By the way, another shortcut to go the previous/next line having one less indentation level would be very nice additionally.
The text was updated successfully, but these errors were encountered: