Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>angularjs-amd-jumpNew to Visual Studio Code? Get it now.
angularjs-amd-jump

angularjs-amd-jump

yangguang

|
22 installs
| (0) | Free
vscode使用ADM模块跳转
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

AngularJS AMD Jump

这个 VSCode 插件用于在 AngularJS 项目中实现 AMD 模块依赖的快速跳转。

功能

  • 按住 ctrl 键并点击鼠标左键可以跳转到 AMD 模块定义
  • 支持以下模块路径解析:
    • 相对路径 (./foo, ../bar)
    • bower_components 目录
    • 项目根目录的 js 目录

使用方法

  1. 在使用 define() 声明的文件中
  2. 将光标移动到依赖数组中的模块名上
  3. 按住 ctrl 键并点击鼠标左键 或按键盘 f12 号键 或右键点击转到定义
  4. 插件会自动跳转到对应模块的定义文件

配置

插件默认不需要额外配置即可使用。如果你的项目结构特殊,可以通过以下设置自定义:

  • angularjsAmdJump.additionalPaths: 额外的模块查找路径
  • angularjsAmdJump.extensions: 要搜索的文件扩展名
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft