Results 1 to 16 of 16

Thread: Visual Studio Editor goes mad at times

  1. #1

    Thread Starter
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Visual Studio Editor goes mad at times

    Hi,

    I have found that the Visual Studio editor goes mad at times and starts typing invalid characters instead of the ones I'm pressing on the keyboard.

    This doesn't happen always, but once in a blue moon and the problem gets corrected after a system reboot.

    It is happening today. So if you want any further information from me to diagnose this problem, please let me know. I know it will be corrected after system reboot, but not sure why or how or when this problem starts coming up.

    The same keys behave all correct in notepad or any other editor or program.

    e.g. In Visual Studio, I press keys from top left corner on my keyboard to the bottom right and this is what gets typed:
    Code:
    ' ²&é"'(-è_çà)=*
    ' azertyuiop^$
    ' qsdfghjklmù
    ' wxcvbn,;:!
    The same thing in notepad is like this:
    Code:
    `1234567890-=\
    qwertyuiop[]
    asdfghjkl;'
    zxcvbnm,./
    (NB: I have appended the comment mark in VS so that it doesn't alter it on itself. That key produces a different character too. So I copied/pasted from elsewhere to make it work)

    Anyone has faced similar problems in the past? Or has any ideas about this problem?
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Visual Studio Editor goes mad at times

    It seems that VS is treating the keyboard as if it is French, but I have no idea why it would do that.

  3. #3

    Thread Starter
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Visual Studio Editor goes mad at times

    Here's a screenshot if this gives any clue in anyway:
    Name:  vs-mad.JPG
Views: 1162
Size:  87.0 KB
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  4. #4
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Visual Studio Editor goes mad at times

    You didn't accidentally change the computer language settings?

    Edit:

    I experience the same thing with Visual Studios 2010! No I haven't changed the computer's language settings. Which version of Visual Studios are you using?
    Last edited by Nightwalker83; Jun 27th, 2011 at 04:36 AM. Reason: Adding more!
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  5. #5

    Thread Starter
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Visual Studio Editor goes mad at times

    This is Visual Studio 2008 with SP1.

    No, I didn't fiddle around with the Language Settings. Moreover, the problem seems to be specific to Visual Studio only. Other applications work alright.
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  6. #6
    PowerPoster
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,070

    Re: Visual Studio Editor goes mad at times

    It does that on purpose to keep you awake. I suggest learning both keyboard layouts so you are prepared to switch


    Seriously though, it looks like it just switched from QWERTY to AZERTY (as for the numbers that's a bit strange though that might be normal on an AZERTY keyboard, never used one). From a bit of googling it seems Ctrl+Shift or Alt+Shift might cause the switch. It didn't when I tried it just now but it might have to do with different settings, keyboard settings, etc...

  7. #7

    Thread Starter
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Visual Studio Editor goes mad at times

    hmm.. what's the point in staying awake for typing and seeing garbage on your screen?

    I'm not sure whether it is due to some key combination, or some system setting or any addin in visual studio. This happens once in a blue moon, so very hard to detect.
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  8. #8
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,109

    Re: Visual Studio Editor goes mad at times

    Whenever this does occur, does it always map the keys in the same way? In other words, are you always switching from QWERTY to AZERTY?

    Next time a blue moon rolls around, you can test it.
    My usual boring signature: Nothing

  9. #9

    Thread Starter
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Visual Studio Editor goes mad at times

    Yes... its always the same key mapping and specific only to visual studio. Other applications are not affected.
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  10. #10
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,109

    Re: Visual Studio Editor goes mad at times

    If it is always the same key mapping, then it is not madness. There is a clear method, you just don't understand what it is....and neither do I. Some other people have suggested that the mapping you are seeing is recognized, though I have never seen such a mapping. If that's a real keyboard mapping alternative to QWERTY (and I have never seen Dvorak), then the worst problem would be that you have a buggy installation file. Alternatively, there may be some obscure hotkey means of switching to an alternate.
    My usual boring signature: Nothing

  11. #11

    Thread Starter
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Visual Studio Editor goes mad at times

    And the problem is not limited to one run of visual studio. Once this starts happening, it remains until I restart my PC. After the restart the problem is gone.
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  12. #12

    Re: Visual Studio Editor goes mad at times

    This is the AZERTY and QWERTY mappings...see if anything correlates:

  13. #13

    Thread Starter
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Visual Studio Editor goes mad at times

    yes, looks like exact match.

    So it looks like it somehow believes my keyboard is AZERTY and not QUERTY?
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  14. #14

    Re: Visual Studio Editor goes mad at times

    Quote Originally Posted by Pradeep1210 View Post
    yes, looks like exact match.

    So it looks like it somehow believes my keyboard is AZERTY and not QUERTY?
    QWERTY, and it would appear so. I don't know of a fix off hand for that...make sure you're not pressing any combinations that would be weird or cause it to think otherwise.

  15. #15

    Thread Starter
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Visual Studio Editor goes mad at times

    Quote Originally Posted by formlesstree4 View Post
    QWERTY, and it would appear so. I don't know of a fix off hand for that...make sure you're not pressing any combinations that would be weird or cause it to think otherwise.
    hmm.. I can't believe someone could do a typo with that too
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  16. #16
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    Re: Visual Studio Editor goes mad at times

    Besides language settings there is also a keyboard layout setting in any Windows version. Using the same language you can switch between different keyboard layouts. There are hotkeys for changing the layout (Lshift + Rshift, Ctrl+Alt, Ctrl+Shift, etc). Check if you have several keyboard layouts installed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width