Skip to content
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

How do I move to a new line while I'm in the middle of the current line? #5466

Closed
shangzhi-hong opened this issue Oct 14, 2017 · 8 comments
Closed

Comments

@shangzhi-hong
Copy link

shangzhi-hong commented Oct 14, 2017

It was line:

C.append(35|)
...........|
.......----------
.......The cursor

At this point, I don't want to press the ")" and then press the enter key to start a new line.
I just want to start a new line and move the cursor there (like Ctrl + Enter in VS Code), how should I do (I mean a shortcut key is helpful)?

The best I can do was to keep an empty line at the end of the file, and "move" to the next line, but it doesn't solve the problem

@ccordoba12
Copy link
Member

I don't understand too well what you mean. Could you post a little video to see how things work in VSCode and Spyder? You can use Licecap for that.

Thanks!

@shangzhi-hong
Copy link
Author

Using VS Code:
1

Using Spyder:
2

Operation like VS Code could really save me a lot of trouble when typing in Spyder, thanks

@shangzhi-hong
Copy link
Author

I know that there is a shortcut for moving to next line in Spyder, but it just doesn't work when there is no empty line at the end of the editor, hope you know what I mean :)

@shangzhi-hong
Copy link
Author

In VS Code:
Ctrl + Enter to create a new line
3

In Spyder:
Only move to the next line, didn't move if there is no "next line"
4

@ccordoba12
Copy link
Member

So you want to create a new line below a given line, no matter where the cursor is placed?

@shangzhi-hong
Copy link
Author

Yes, and this is VERY helpful for me when editing the parameters
Thank you

@ccordoba12
Copy link
Member

ccordoba12 commented Oct 23, 2017

Sorry, this is too specific and we don't have time to implement it. However, we're welcome to receive a pull request that does it.

@lukruh
Copy link
Contributor

lukruh commented Feb 9, 2018

I'm missing the feature as well. Found an easy solution on Stackoverflow for anybody looking for a quick and dirty implementation. Keep in mind, that this can be overwritten while updating spyder.
When I get some time I'm going to put this into a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants