使用 `code tunnel service install` 和 `code tunnel service uninstall`。 > #### How can I ensure I keep my tunnel running? > > You have a few options: > > * Use the `service` command to run as a service. You can run `code tunnel > service install` and `code tunnel service uninstall` to install and remove > them. > * Use the `no-sleep` option, `code tunnel --no-sleep`, to prevent your > remote machine from going to sleep. > [https://code.visualstudio.com/docs/remote/tunnels#_how-can-i-...](https://link.segmentfault.com/?enc=GnzrL0bnxUcv7UFMpt3EDA%3D%3D.P%2BPAtMu7%2B5yj4c2SWBrO9lr48LUfy3E60qWuDYQsJqfphKu6oARjDALraOYyPNCZvREMGT77d5pdpMkh5Jeh7vz3Z9ag%2BTYVNActUecQxuNBrN4X9%2F5vzCw51MTLQDhE)