简体   繁体   English

如何从VS Code跳转到node_modules中的文件定义

[英]How to jump to definition for a file in node_modules from VS Code

I have the following file open in Visual Studio Code: 我在Visual Studio代码中打开了以下文件:

@import "~normalize.css/normalize.css";
@import "./fonts.css";
body {
  padding: 0;
  font-family: "Raleway", sans-serif;
}

I want to be able to navigate from there to the CSS files imported. 我希望能够从那里导航到导入的CSS文件。 I assumed I should use something like Cmd/Ctrl+Click but that doesn't work. 我以为我应该使用类似Cmd / Ctrl + Click的东西,但这不起作用。 Any idea? 任何的想法?

This VS Code extension will provide the functionality you're looking for. VS代码扩展将提供您正在寻找的功能。

Once installed, just use F12 to open the source. 安装后,只需使用F12打开源。

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

相关问题 转到定义 vs 代码转到 node_modules/@types 而不是 my.ts 文件 - Goto definition vs code goes to node_modules/@types instead of my .ts file VS Code 不排除 Code 的 node_modules 被监视 - 已达到文件监视限制 - VS Code not excluding Code's node_modules from being watched - file watch limit reached 阻止 VS Code 跟踪对 node_modules 的更改 - Stop VS Code from traking changes to node_modules VS代码:使用来自node_modules \\ .bin的Grunt - VS Code: Using Grunt from node_modules\.bin VS Code 不建议从 node_modules 内部导入 - VS Code is not sugging imports from inside the node_modules 如何在 ./node_modules/@types 之外使用打字稿定义文件 - How to use typescript definition files outside of ./node_modules/@types 为什么 VS Code 从“hoist-non-react-statics/node_modules/@types/react”导入 - Why is VS Code importing from "hoist-non-react-statics/node_modules/@types/react" 在VS Code中导入node_modules成员自动完成 - Import node_modules members autocomplete in VS Code 带有 webpack 的 VS 代码扩展并链接到 node_modules - VS Code extension with webpack and link to node_modules 如何让 VS Code 智能感知在多个 node_modules 文件夹中搜索打字稿 - How to get VS Code intellisense to search multiple node_modules folders for typescript
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM