0

I would like the ability to type right curly brace using the Ctrl+Alt+0 key combination. This is the combination I use in every other Windows program, but for some reason it doesn't work in Visual C++ 2008. I have the Express version, if that's a relevant fact.

It's funny, because I can type the left curly brace but not the right one. I tried typing it in different locations of the code in text editor, in case this is a relevant factor, but it was all the same. I can't produce the right curly brace. What's going on?...

The only "work-around" I have found is to use Alt Gr+0. But I am not accustomed to this key combo, and I would like to continue using Ctrl+Alt+0 as I have been using it for over 15 years.

3
  • P.S. I've checked my keyboard input language and layout. I know it happens sometimes that I accidentally switch it. But it's all good.
    – Samir
    Jun 4, 2013 at 23:09
  • No one?... really? No idea what this could be? Or how to solve it?
    – Samir
    Jun 5, 2013 at 11:08
  • I have figured it out. Thanks anyway.
    – Samir
    Jun 5, 2013 at 15:39

1 Answer 1

5

To my Swedish fellows, go ahead and find the View.ViewCode command in your keyboard options and remove it. That should sort it out.

Here's a short lazy dog (swe. lathund) for you:

  1. Tools
  2. Options
  3. Environment
  4. Keyboard
  5. Click in the Press shortcut keys input field.
  6. Press Ctrl+Alt+0 to reveal what command is using this key combo. It should say View.ViewCode (Ctrl+Alt+0 (Global)).
  7. Click in the Show commands containing input field.
  8. Type in the name of the command you see down below, that is View.ViewCode.
  9. Select this command if not selected already, and click the Remove button down below, where it says Shortcuts for selected command.

That should do it. You could also change the key binding to something else. But I found it easier to just remove the damned thing, it doesn't seem to do anything anyway.

I can finally start using Ctrl+Alt+0 instead of AltGr+0. The latter forces me to use one hand instead of two hands, and to place my hand in an unnatural position. Either that, or I would have to move my left hand all the way across the keyboard from the left home (resting) key to the right top key row. Haa haa! Nice joke Microsoft!

visual c++ tools, options, environment, keyboard

I have not used Visual C++ before so I didn't know what to expect. But I guess they just didn't think about international developers very much back in the days (2008 or so). I'm not sure of the status with the 2010 and 2012 version of Visual C++. But I have not made any customizations yet whatsoever. Well except for this one perhaps... Everything is just default, including the keyboard scheme. I just chose English during install, and I used the offline installer.

I guess you could say it is faulty by default!!....

1
  • This was so helpful! This solution worked for me in VS 2015! :) Nov 5, 2015 at 10:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.