-
-
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
Request: copy entire line with CTRL+C and no selection #21264
Comments
Hi @rlabbe thank you for the feedback! Seems like a reasonable feature to me 👍 Checking a little bit seems like the implementation of such a feature would be related with the following method: spyder/spyder/plugins/editor/widgets/base.py Lines 473 to 479 in e654556
Also, what do you think about the feature @spyder-ide/core-developers ? |
It seems reasonable to me and not so hard to implement. So I'd say we should do it. |
I like it, maybe we can do the same with CTRL+X? Though that seems to be implemented differently. |
In case of the spyder/spyder/plugins/editor/widgets/codeeditor/codeeditor.py Lines 1867 to 1877 in e654556
Checking seems like VSCode offers that functionality so it could be nice to have it 👍 |
How does it work in VSCode? |
Hello! Is there already a PR for this feature? |
No, we haven't had time to work on it, sorry. |
Would you like to help implementing it @The-Ludwig ? |
@dalthviz, yes very much so! If somebody gives me a hint at where to start (I already see some suggestions in this thread), I am happy to get started on this! |
@ccordoba12 @dalthviz I have to say I was pleasantly surprised how easy it was to get a whole dev-setup for spyder to work, congrats for this level of maintainability! The PR mimics the behaviour of e.g. VSCode almost perfectly, except when it comes to pasting the copied/cut line again into the editor. There we need to modify |
Awesome! Thank you @The-Ludwig for working on this! And yep, I think we can further discuss details and possible follow up work over #22480 👍 |
Many code editors, such as Visual Studio Code, Sublime Text, any JetBrain IDE, etc, will copy an entire line of code if you press Ctrl+C with the cursor on a line but nothing selected. I find this very useful and use it all the time. It would be nice to have this in Spyder, perhaps as a settable preference in Preferences/Editor, not the least because it is in muscle memory and I keep trying to do it over and over!
The text was updated successfully, but these errors were encountered: