Can't type certain square brackets in Visual Studio 2010 + Resharper

与世无争的帅哥 提交于 2021-02-18 20:40:22

问题


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?


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/9324691/cant-type-certain-square-brackets-in-visual-studio-2010-resharper

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!