Skip to content

azat-io/vscode-linkify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

VS Code Linkify

VS Code Linkify logo

Version Code Coverage GitHub License

A VS Code extension that makes it super easy to link local npm packages to your project.

Link local npm packages directly from your editor without needing the terminal or memorizing complex commands.

What is this extension for?

If you're developing multiple npm packages simultaneously or frequently testing changes in your libraries, you probably use these commands often:

npm link package-name

This can be inconvenient and time-consuming.

VS Code Linkify simplifies this process, allowing you to link packages directly from your editor without using the terminal or memorizing complex commands.

Features

  • One-click linking. Quickly link local npm packages.
  • Multiple package managers. Automatically detects and supports npm, yarn, pnpm, and bun.
  • Remembers paths. No need to repeatedly select package directories.
  • Hover integration. Easily link packages by hovering over dependencies in package.json.
  • Smart error handling. Automatically handles workspace dependency errors in pnpm projects.

Installation

Install the extension from the Marketplace or search for "Linkify" in the Extensions view (Ctrl+Shift+X or Cmd+Shift+X).

How to use

Using this extension is very simple:

  1. Open your project's package.json.
  2. Hover over the dependency you want to link.
  3. Click the "Link Package" button in the tooltip.
  4. Select the directory of the local package.

The extension automatically completes the linking and notifies you upon successful completion!

VS Code Linkify Demo

Use Cases

  • Monorepos: easily test changes between different packages.
  • Library development: instantly check how your library performs in your project.
  • Debugging dependencies: quickly link local dependency versions for debugging.

Troubleshooting

If you encounter any issues:

  1. Make sure your package has a valid package.json file
  2. Check that you have the necessary permissions to create symlinks
  3. Verify that your package manager (npm, yarn, pnpm, or bun) is installed and accessible
  4. For pnpm workspace users: If you encounter errors like ERR_PNPM_WORKSPACE_PKG_NOT_FOUND or issues with workspace dependencies, the extension will automatically try to use pnpm add as a fallback method

Contributing

See Contributing Guide.

You can also support this project by giving this repository a star on GitHub or rate this extension with five stars on Marketplace.

License

MIT ยฉ Azat S.

About

๐Ÿ”— VS Code extension to quickly and effortlessly link local npm package in one click

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks