Sign in to follow this  
Ferazu

Can't type "}" in Visual C++ 2010

Recommended Posts

Basically what the title says. I can't typ the "}" curly bracket. The "{" works fine, nothing wrong the the keyboard button either since I can typ it here obviously :P

Tried googling it with no result. Using swedish keyboard btw but that shouldn't matter.

Share this post


Link to post
Share on other sites
Definitely sounds weird.
What happens when you do type "}"?
Does it put in a different character? Does it put in whitespace? Does it do nothing at all?

Share this post


Link to post
Share on other sites
Nothing happens when I try to type the character in. I can paste it in but I can't keep doing that when coding..reconsidering reinstalling visual c++ atm..

Share this post


Link to post
Share on other sites
Are you sure you're using the proper keyboard layout? Your physical keyboard might be Swedish but your OS can make pretend that it isn't. When you enter the editor, look at the task bar to see if you can find an icon with an abbreviation of the language you are using. I'm using a Polish (Programmers) layout so my icon appears as PL but when I switch to English it's EN. Swedish should show up as SV. If nothing shows up, find "Region and Language" in the control panel, select "Keyboard and Languages" tab, press "Change keyboard" and look there.

If you have a different language selected, switch back to Swedish by clicking on SV. If next to the SV is a little icon of a keyboard, you might have a different version of a Swedish layout, try changing that. Ultimately, you can access this feature in full in the control panel as "Region and Language" (I think it's a little different for Windows XP, but it still has language and region in the name).

Other than that, I've no idea [img]http://public.gamedev.net//public/style_emoticons/default/biggrin.png[/img] Edited by boogyman19946

Share this post


Link to post
Share on other sites
Tried a different keyboard and the layout is swedish (SV). This is so odd...
all other inputs works in visual c++ besides } Edited by Ferazu

Share this post


Link to post
Share on other sites
[quote name='Endurion' timestamp='1341164318' post='4954582']
Did you maybe assign a keyboard command to the key by accident?
[/quote]

I just checked there. I have reset the layout even tried assigning it to another command (like ctrl + shit + 0). It seems like I can input all other symbols besides "}". I'm really frustrated. Was planning to write codes couple of hours tonight... Edited by Ferazu

Share this post


Link to post
Share on other sites
Decided to work with Code Blocks till I find a fix for this. Only thing I find when I google this matter is my own topic [img]http://public.gamedev.net//public/style_emoticons/default/sad.png[/img] Edited by Ferazu

Share this post


Link to post
Share on other sites
Here's something you can try, not sure if it'll work:

1. Download and install AutoHotKey: [url="http://www.autohotkey.com/"]http://www.autohotkey.com/[/url]

2. Create a new AHK script and paste in the following contents:
[code]

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Recommended for catching common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.

::}::{}}
[/code]

3. Save and then execute the script (you will see a green H icon in your tasktray if it's running). To stop the script, right click on this icon and choose the appropriate context item.

4. Try using the } key in Visual Studio followed by another key to trigger the macro. For example, press } and then 'enter' or 'spacebar'..

The idea is to make use of [url="http://www.autohotkey.com/docs/Hotstrings.htm"]Hotstrings[/url] to replace the keystroke itself with the text. With how AHK works, it should process the } before Visual Studio does (assuming Visual Studio is in fact eating the keystroke) and you should get the text to show up after the followup key stroke to trigger the macro.

Do you have any addons installed in Visual Studio? Perhaps a bug in one of those is causing a problem. You should also check your system for any system wide hooks or DLLs being loaded in AppInit_DLLs. Perhaps there is something that isn't compatible with Visual Studio, but is working fine with everything else.

Share this post


Link to post
Share on other sites
I did a quick Google search and came up with this:

[url="http://social.msdn.microsoft.com/Forums/is/vcgeneral/thread/ccba4e1a-85df-422d-bd41-d6c55bb7452c"]http://social.msdn.microsoft.com/Forums/is/vcgeneral/thread/ccba4e1a-85df-422d-bd41-d6c55bb7452c[/url]

maybe it will help.

Share this post


Link to post
Share on other sites
[quote name='eFoDay' timestamp='1341182247' post='4954670']
I did a quick Google search and came up with this:

[url="http://social.msdn.microsoft.com/Forums/is/vcgeneral/thread/ccba4e1a-85df-422d-bd41-d6c55bb7452c"]http://social.msdn.m...41-d6c55bb7452c[/url]

maybe it will help.
[/quote]

Thank you so much :)

Had this problem in Visual Studio 2012 Express too.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this