Ayman Khan
Ayman Khan

Reputation: 121

Is there a way to disable shift + enter in VSCode?

I keep pressing shift + enter in VSCode by accident and it brings up the terminal, is there a way to disable this shortcut?

Upvotes: 11

Views: 6487

Answers (2)

Anonymous Captain
Anonymous Captain

Reputation: 1

On Visual Studio 2019 with default settings, go to:

Tools > Options > Environment > Keyboard.

Under "Show commmands containing:", type: Edit.SmartBreakLine

Then click Remove [Shortcut].

--

THEN, do same for "InteractiveConsole.BreakLine", and again remove the Shift+Enter shortcut.

Side effect on InteractiveConsole.BreakLine: After removing the shortcut, If you keep holding shift + enter to type a normal new line after removing InteractiveConsole.BreakLine, (without getting auto-complete-stuff), you won't get a new line.

Upvotes: -3

perepm
perepm

Reputation: 990

Open the shortcuts settings on vscode (either from "settings", or with "Ctrl + K, Ctrl + S") and search which shortcut you have assigned to "Shift Enter".

You can enter "Shift Enter" directly in the search box to see those.

Then edit or delete those you don't want

Upvotes: 10

Related Questions