无法在 Visual Studio 2010 中键入某些方括号 +雷夏珀
在某些情况下,键入左方括号不会产生任何结果。特别是当我想在赋值表达式右侧的变量上输入它们时:
arr[i] = arr
所以我无法输入,例如:
arr[i] = arr[9]
它与 Resharper 有关。然而,自动完成和其他东西的转向似乎并不能解决这个问题。有人熟悉这个问题吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我第一次安装 Resharper 时遇到了同样的问题。
查看“工具”>“选项>环境>键盘绑定到 Ctrl+Alt+^ (等于 AltGr+[ 因为我想你使用的是 AZERTY 键盘)。最简单的方法是将其作为新的快捷方式输入。
删除或重新绑定出现的快捷方式,然后就可以开始了。
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.
我在 Visual Studio Express 2012 中遇到了几乎相同的问题。我无法写这些 -> } <-.
(和你有同样的问题,@hazard)
阅读@Bart的答案后,我看到Ctrl+Alt+0连接到了一个叫做“View.ViewCode”的东西。所以我删除了那个快捷方式并且它起作用了。
但奇怪的是,在安装 VS2012 后的最初几个小时内,我可以编写 } 。
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.