Path: blob/master/website/content/en/docs/examples/vscode.md
2610 views
------Securing Visual Studio Code with Lima
Lima helps securing the development environment by running it inside a VM. Notably, this prevents AI agents, such as GitHub Copilot in VS Code, from directly executing untrusted commands on the host.
Start a Lima instance. If you use GitHub Copilot, consider disabling mounts by passing the
--mount-noneflag to prevent Copilot from accessing host files:
Add the following line to
~/.ssh/config:
Open the Remote Explorer in the Visual Studio Code sidebar and select
lima-<INSTANCE>from the SSH remote list.

{{% alert title="Hint" color=success %}} If the Remote Explorer is missing in the sidebar, install the following extensions:
See also the documentation of Visual Studio Code for further troubleshooting. {{% /alert %}}
Set up the workspace by clicking
Clone Git Repository...on theWelcomescreen, or copy the project directory withlimactl cp: