12

In certain cases typing an opening square bracket results in nothing at all. In particular when I want to type them on a variable in the right side of assignment expression:

arr[i] = arr   

So I cant type, for example:

arr[i] = arr[9]

It has something to do with Resharper. However, turning of autocomplete and stuff doesn't seem to solve it. Anyone familiar with this problem?

abatishchev
  • 98,240
  • 88
  • 296
  • 433
Tim Dams
  • 747
  • 1
  • 6
  • 15

2 Answers2

35

I had the same issue the first time I insalled Resharper. Look under Tools > Options > Environment > Keyboard to what is bound to Ctrl+Alt+^ (equals to AltGr+[ since I suppose you work on an AZERTY keyboard). Easiest way of doing is by just entering it as a new shortcut.

Remove or rebind the shortcut that comes up and you're good to go.

L Y E S - C H I O U K H
  • 4,765
  • 8
  • 40
  • 57
Bart
  • 9,925
  • 7
  • 47
  • 64
  • Thank you! I had this issue in Visual Studio 2010 when doing C++. I just thought my IDE was drunk. It was bound to "Align assignments", so it only gave me issues on lines containing a "=". It wasn't aligning anything, anyway... – Samuel Delisle Feb 10 '15 at 22:00
0

I had the almost same issue in Visual Studio Express 2012. I couldn't write theese -> } <-. (Same problem as you, @hazard)

After reading @Bart's answer, I saw that Ctrl+Alt+0 was connected to something called "View.ViewCode". So I removed that shortcut and it worked.

What's weird though, is that I COULD write }s during the first few hours I used VS2012 after installing it.

Zerato
  • 683
  • 9
  • 18