Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shift + Enter no longer adds a new line in Visual Studio

I installed the Visual Studio 2010 productivity power tools, and since then Shift + Enter does not add a new line in the text editor. I've tried disabling all of the productivity tools settings and even uninstalling the productivity power tools entirely, but Shift + Enter still does nothing. I can't find the setting for this.

How can I re-enable shift + enter to add a space (just like enter alone does)?

like image 971
Mike Pateras Avatar asked Nov 30 '10 19:11

Mike Pateras


People also ask

How do you enter a new line in Visual Studio Code?

In the local searchbox ( ctrl + f ) you can insert newlines by pressing ctrl + enter . If you use the global search ( ctrl + shift + f ) you can insert newlines by pressing shift + enter .

What is Ctrl Shift F in Visual Studio?

Ctrl-Shift-F is used to find all the ocuurance of a string with in entire solution and display find result window as shown below. Ctrl-F is used to find a string in the current document, project and all open documents one by one.


2 Answers

  • Go to Tools/Options/Environment/Keyboard.
  • Switch the "Use new shortcut in:" dropdown to "Text Editor".
  • Pick the Edit.BreakLine command.
  • In the Press shortcut keys edit pane press Shift+Enter.
like image 87
sbi Avatar answered Sep 20 '22 00:09

sbi


From Options menu, select "Environment", then "Keyboard" that gives you the option of setting keyboard shortcuts. The one you want should be "Edit.BreakLine" - you can search for them. Selecting this, you can then add/remove assosciated shortcuts.

like image 43
TZHX Avatar answered Sep 20 '22 00:09

TZHX