Instantly open project in Visual Studio Code with a single click.
Download the .tgz
file from a release. Navigate to Local → Addons → Installed → Install from Disk and select the .tgz
file. Enable VS Code and restart Local.
- Open Local WP.
- Navigate to the site you want to work on.
- Go to the Overview tab.
- Click the "Open With VS Code" button.
- The project directory will open in Visual Studio Code.
Clone the repo anywhere you want using:
git clone https://github.com/refactco/refact-localwp-addon-open-with-vscode.git
Then, cd into the repo and run npm run link
and it will automatically symlink to your Local addons folder and build the package.
If the npm run link
didn't work, you should move the add-on folder to your Local WP add-ons directory.
- For Windows:
C:\Users\<YourUsername>\AppData\Roaming\Local\addons
- For macOS:
/Users/<YourUsername>/Library/Application Support/Local/addons
- For Linux:
~/.config/Local/addons
then run npm run build
or npm run watch
to develop.
main
will be the current development version.
Run npm pack
to create a package to distribute to release channels.
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
This project is licensed under the MIT License. See the LICENSE file for details.
If you have any questions or need help, feel free to open an issue on the GitHub repository.