Skip to content

Commit fe8f81b

Browse files
committed
docs: add instructions on how to use vs code
1 parent 726412a commit fe8f81b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Umbraco.Web.UI.Client/.github/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@ Open this file in an editor: `src/Umbraco.Web.UI/appsettings.Development.json` a
5353

5454
Now start the vite server by running the command: `npm run dev:server` in the `Umbraco.Web.UI.Client` folder, and finally open the http://localhost:5173 URL in your browser.
5555

56+
### VS Code
57+
58+
If you are using VS Code, you can use the `launch.json` file to start the development server. This will also start the Umbraco instance and open the browser.
59+
60+
You should run the task **Backoffice Launch (Vite + .NET Core)** in the **Run and Debug** panel, which will start the Vite server and the Umbraco instance. It automatically configures Umbraco (using environment variables) to use the Vite server as the Backoffice host. This task will also open a browser window, so you can start developing right away. The first time you run this task, it will take a little longer to start the Umbraco instance, but subsequent runs will be faster. Keep an eye on the Debug Console to see when the Umbraco instance is ready and then refresh the browser.
61+
62+
If you want to run the Vite server only, you can run the task **Backoffice Launch Vite**, which will start the Vite server only and launch a browser.
63+
64+
If you have an existing Vite server running, you can run the task **Backoffice Attach Vite** to attach the debugger to the Vite server.
65+
5666
### Storybook
5767

5868
You can test the Storybook locally by running `npm run storybook`. This will start the Storybook server and open a browser window with the Storybook UI.

0 commit comments

Comments
 (0)