简体   繁体   中英

Ctrl +Shift + Enter not working with Visual Studio 2013 power productivity tools

I have two computers at home. Both have Visual Studio 2013 with power productivity tools extension. The only difference is one computer has windows 7 while another is running windows 8.1.

Both are running same edition of visual studio and latest updates are installed. But on windows 8.1 machine pressing Ctrl + Shift + Enter does not put semicolon while with windows 7 it's working fine.

Can anyone please tell me is that OS specific problem or there is a bug in power productivity tools for visual studio 2013.

reference: http://abhijitjana.net/2010/07/21/use-shiftenter-to-add-automatically-at-end-of-the-line-visual-studio-2010-productivity-power-tool/ - This link is for visual studio 2010 but now visual studio 2013 got same functionality with Ctrl + Shift + Enter.

Just tested it on mine (VS2013 w/Power Tools) in a C# file on windows 8.1 and it worked.

My recommendation is that you verify that the mapping ( Edit.LineOpenBelow ) is mapped to the keystroke.

Do you have other tools which may have taken the mapping such as Resharper?

If the mapping is there and appears to be assigned, try to change the mapping and see if it it works or fails. The mapping can be found in the keyboard options here:

在此输入图像描述

Apparently in Windows 8 (and Windows 8.1) a special shortcut was added to run a task without showing the UAC notification to grant administrator privileges when running a specific application.

Surprisingly the shortcut is Ctrl + Shift + Enter .

Source: http://www.tekrevue.com/tip/command-prompt-administrator-shortcut/

So the question is how to disable it and if it will solve your issue:

You can disable the sequence Ctrl + Shift in Windows 8.

  1. In "Control Panel" | "Clock, Language and Region" | "Language" click "Advanced Settings" in the left pane.
  2. In "Advanced settings" click "Change Language bar hot keys"
  3. In "Text Services and Input Languages" click "Change Key Sequence" button and disable the the key sequence by selecting the "Not Assigned" radio buttons.

Source: https://superuser.com/questions/604790/how-to-disable-ctrlshift-keyboard-layout-switch-in-windows-8

Or you can try to disable the UAC:

Open up the Start screen, search for UAC, and you should see an option for User Account Control settings. If you don't, you'll need to change to search through your Settings first, but then you should see it. And then you can drag the slider all the way to the bottom, the same as for the other versions of Windows.

Source: http://www.howtogeek.com/howto/windows-vista/disable-user-account-control-uac-the-easy-way-on-windows-vista/

You can also try using SharpKeys to redefine the specific keyboard sequence:

Download link: http://www.randyrants.com/2011/12/sharpkeys_35/

Guide: http://www.askvg.com/customize-any-key-in-your-keyboard-using-sharpkeys/

Now, after doing it, please try the hotkey in VS2013.

Let me know if that support your issue,

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM