Reputation: 97
When I am using vs code say I want to write
1. print("Hello World")
2.
What happens is when I complete writing print("
it automatically adds ")
which is amazing and saves a lot of time. But the problem is, at the end of writing the code, my blinking cursor is stuck in the middle like this:
1. print("Hello World|")
2.
Now if I press enter to go to the next line, it will become like this:
1. print("Hello World
2. |")
3.
So in order to go to the next line, I have to click click twice or more on the right arrow depending on the line of code, and then press enter. This makes the whole thing very annoying and time-consuming. But I am damn sure there's a way out. At least all the youtube videos I see, they don't do that. I just don't know how to do it. Please help me if you know how to get over this problem.
Upvotes: 1
Views: 5069
Reputation: 11
I am on Windows 11, and the instead of shift + enter, it is Control + Enter.
Upvotes: 0
Reputation: 11
Ctrl + enter
does work for me without any shortcut customization whatsoever.
I am using VS Code
Upvotes: 1
Reputation: 2874
Your problem should be solved with Shift + Enter
Edit: If it doesn't work for you, check the keybind that is set. Go to File, Preferences, Keyboard Shortcuts and search for Insert Line Below. You can set up a keybind there and use that instead.
Upvotes: 2