简体   繁体   English

VSCode 菜单中缺少“转到定义”

[英]Missing "Go to Definition" from VSCode menu

I am working on Typescript/Javascript project using VSCODE.我正在使用 VSCODE 开发 Typescript/Javascript 项目。 I use to hover mouse on the method and can see the function definition, cmd + click go the definition.我用鼠标悬停在方法上可以看到函数定义, cmd + click go定义。 Somehow(I don't know what I did), the "Go to Definition" disappear from the right click menu.不知何故(我不知道我做了什么),“转到定义”从右键菜单中消失了。 This is what I got right now.这就是我现在得到的。

Search a lot on Google, tried add editor.multipleCursor: ctrlCmd but it is not working as well.在 Google 上搜索了很多,尝试添加editor.multipleCursor: ctrlCmd但效果不佳。

Anyone has similar situation.任何人都有类似的情况。

在此处输入图像描述

I had the same issue today, some answers online pointed out that this is a problem with extensions, but each blame different one.我今天遇到了同样的问题,网上一些答案指出这是扩展的问题,但每个都怪不同的。 What worked for me is reinstalling these extensions: python, c/c++, git history, then restarting VSCode.对我有用的是重新安装这些扩展:python、c/c++、git history,然后重新启动 VSCode。 Maybe for your situation you need to uninstall different extensions and install them again, especially (but not limited to) recent ones.也许对于您的情况,您需要卸载不同的扩展程序并重新安装它们,尤其是(但不限于)最近的扩展程序。

fast answer: if is WSL installed verific dotnet version betwen systems.快速回答:如果 WSL 在系统之间安装了验证 dotnet 版本。 i had to match them...我必须匹配他们...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM