Visual Studio 快捷键和 Intellisense 不起作用
在调试时,我的 Visual Studio 2008 遇到了一个奇怪的问题。
由于调试时的某种原因,它似乎只在一个项目上,即我当前正在开发的一个网站。没有一个基本快捷键可以像 F10/F11 那样单步执行代码。即使当用鼠标悬停在通常显示值的某些东西上时,也无法正常工作,第一次会这样做,然后冻结。
我尝试将 web.config 文件与正确调试的项目进行比较,甚至尝试重新创建项目,尝试重置键盘映射,我现在几乎没有想法了,我唯一没有做的就是修复 Visual Studio,但我的结论是的,如果它是视觉工作室,它就会为所有项目这样做。
任何帮助表示赞赏。
谢谢。
问候 Chris
注意:我可以用鼠标单步执行代码(单击图标),但这非常慢,从一行移动到另一行需要花费大量时间。
编辑:经过更多的尝试和错误,我让它工作了一次,但我不知道我是如何让它工作的,我所做的只是一个 IISReset,然后它工作了一次,能够像正常一样调试,但是当我再次尝试调试时,回到上面描述的,尝试另一个IISReset,但这次没有成功。
I have a strange issue with regards to my visual studio 2008 when debugging.
It seems to be only on one project, a web site that im currently developing, for some reason when debugging. None of the basic short cut keys work like F10/F11 to step through the code. Even when hovering over something with the mouse which usually shows the value, doesnt work properly, will do it the first time, then freeze.
I have tried comparing web.config files with projects that debug properly, even tried recreating the project, tried resetting the keyboard mappings, and im just about out of ideas now, the only thing i havent done is repair the visual studio, but my conclusion is, if it was visual studio it would be doing it for all projects.
Any help is appreciated.
Thank you.
Regards
Chris
Note: I can step through the code with the mouse (clicking on the icons) however this is very slow, takes a noticable amount of time to move from one line to the other.
EDIT: After more trial and errors, I had it work once, but i dont know how i made it work, all i did was an IISReset, then it worked once, was able to debug like normal, however when i tried to debug again, went back to as described above, tried another IISReset but didnt work this time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我也遇到了同样的问题,结果是键盘上的“F Lock”功能锁定键被按下,导致 F1-F12 中的任何一个键都无法工作。您可以通过运行 Windows 附带的屏幕键盘并查看使用该键盘按下功能键时快捷方式是否有效来验证这是否是您的问题。如果是这种情况,请在键盘上查找某种 F-lock 功能。
I had the same problem and it turned out the "F Lock" function lock key on my keyboard had been depressed, preventing any of the F1-F12 keys from working. You can verify that this is your problem by running the on-screen keyboard that comes with Windows and seeing if the shortcuts work when you press the function keys using that keyboard. If that is the case, look for some sort of F-lock functionality on your keyboard.
现在,新一代笔记本电脑/计算机的键盘底部有一个“Fn”键。在 VISUAL STUDIO 中简单地按“F12”或“F11”键进行“STEP INTO”或“STEP OVER”将不再适用于这些笔记本电脑/计算机。您必须按住“Fn”键,然后按所需的键“F12”或“F11”
Now a days new generation laptops/computers are coming with a "Fn" key on the keyboard in the bottom line. Simply pressing the "F12" or "F11" keys for "STEP INTO" or "STEP OVER" in VISUAL STUDIO will no longer work on those laptops/computers. You have to press and hold the "Fn" key and then press your desired key as "F12" or "F11"
我遇到了同样的问题,我尝试了一切,包括:重新启动计算机,devenv.exe /resetsettings,工具> >导入/导出设置>全部重置、devenv.exe /safemode、关闭 Windows 中的视觉样式以及检查 Windows 中的键盘设置。
这些都不起作用。然后,我删除了与我的解决方案关联的 .suo 文件并修复了它!
但我不知道为什么。
I experienced the same problem and I tried everything including: restarting computer, devenv.exe /resetsettings, Tools > Import/Export Settings > Reset All, devenv.exe /safemode, turning of visual styling in Windows, and checking keyboard settings in Windows.
None of these works. I then deleted the .suo file associated to my solution and that fixed it!
I have no idea why though.
尝试重置您的 Visual Studio
重置设置
命令“devenv /resetsettings”会将 Visual Studio 恢复到其原始出厂状态。
如果不是,请尝试清除重新安装。另一个可能的事情可能是你不确定的记忆。祝你好运 :)
Try resetting your Visual Studio
Reset Settings
The command "devenv /resetsettings" will restore Visual Studio back to its original factory state.
If not that try a clear re-install. An other possible thingie could be your memories not sure though. Good Luck :)
我在 Visual Studio(v19、v22)中禁用了所有功能键,并尝试了几个小时来寻找解决方案。突然间,Visual Studio (F1-F12) 中没有功能键起作用,只有具有某些 Windows 功能的功能键(例如启动菜单等)除外。
而且,解决方案非常简单,简单到白痴。我不小心关闭了功能键。
您可能关闭了功能锁;我的是 Fn+Esc。拉动它以再次打开它。
I had all my function keys disabled in Visual Studio (v19, v22) and had tried several hours looking for a solution. Suddenly no function key was acting in Visual Studio(F1-F12), exept only function keys that had some windows functions (e.g. startup menu etc.).
And, the solution was very simple, idiotic simple. I had accidentally turned the function keys off.
You may have a function lock turned off; mine was Fn+Esc. Tuggle it to turn it on again.