Skip to content
This repository has been archived by the owner on Jul 14, 2024. It is now read-only.

Latest commit

 

History

History
31 lines (17 loc) · 1.33 KB

README.md

File metadata and controls

31 lines (17 loc) · 1.33 KB

Open in VSCode for LocalWP

You can use this addon for Local 9.x+ on MacOS ONLY to open the site's app/public folder in a new window in VSCode.

Install

Download the .tgz file from a release. Navigate to Local → Addons → Installed → Install from Disk and select the .tgz file. Enable Open in VSCode and restart Local.

Usage

CleanShot 2024-07-14 at 17 38 39@2x

Open any site, and in the top-right of the window you should see an "Open in VSCode" button. If it is disabled, the addon cannot find the location of /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code to work with VSCode.

Development

Clone the repo anywhere you want using:

git clone git@github.com:aubreypwd/local-open-in-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.

then run npm run build or npm run watch (requires watchexec, install with brew install watchexec) to develop.

The main branch will be the current development version.

Packaging for release

Run npm run dist to create a package to distribute to release channels on Github.