Shift + Enter no longer adds a new line in Visual Studio
I installed the Visual Studio 2010 pro开发者_StackOverflow社区ductivity 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)?
- 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.
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.
In new versions it was changed to Ctrl+Shift+Enter, And you easily can change it as sbi suggested
Try Ctrl + Shift + Enter to add a line bellow.
Ctrl + Enter will add a line above.
精彩评论