-
-
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
Add Ctrl+] and Ctrl+[ as indent and unindent shortcuts #3406
Comments
Thanks for the suggestion. Are there any other IDEs using this? This is an easy fix an a great place to start contributing to Spyder (if @spyder-ide/core-developers think is a good idea) |
editors that have this behavior by default:
The fact that it is default in IDLE and Jupyter Notebook is the prevailing reason since python people are used to it. |
@talkaminker thanks for the feedback. You are welcome to submit a PR :-), if you need some pointers let us know |
I made a mistake before, I meant ctrl + [ and ctrl + ]. |
Well if all those other IDEs are using it, I say go for it! |
I like the idea, now that it's |
👍 |
The best thing we can do to fix this (and other shortcuts related stuff, like the use of This is my plan for 3.1 :-) @goanpeca, you were right at the end: fixed shortcuts were a bad idea ;-p |
:-) |
If we are on the subject, also would be cool to allow assign multiple shortcuts for the same operation (like pycharm and sublime text allows) |
Could you paste a screenshot of the interface where multiple shortcuts are defined (for either pycharm or sublime.. or both?)
Sure, this one is an easy one, could you open a new issue for that as a feature request? |
The pycharm way is the most straightforward Clicking on "Add Keyboard Shortcut" Where you click on the keyboard the shortcut you want and it will automatically write it down. In this example, I hit Shift+8. if the shortcut already exists it will tell you and ask you if you want to remove the second shortcut. Note that you can also disable a shortcut completely if you don't like the operation |
I second this. Cmd+[ and Cmd+] is very conventional today to use for indent/unindent. At the very least, it should be configurable, but it's nowhere to be found in Preferences->Keyboard shortcuts. |
@rlaverde, please implement this by making the shortcuts to indent/unindent configurable. |
This is a feature request.
ctrl ] and ctrl [ are super common shortcuts to indent current line/block and unindent current line/block.
This is different from Tab because Tab inserts a tab if pressed in the middle of a line and only works as indent line if the line is selected.
In other ides (sublime, and notebook) you don't have to select the line before pressing shift [ or ]
Thanks!
The text was updated successfully, but these errors were encountered: