The following Vagrant commands are currently supported:
Name
Vagrant Command
VS Code Command
Up
vagrant up
Vagrant: Up
Provision
vagrant provision
Vagrant: Provision
Suspend
vagrant suspend
Vagrant: Suspend
Halt
vagrant halt
Vagrant: Halt
Reload
vagrant reload
Vagrant: Reload
Destroy
vagrant destroy -f
Vagrant: Destroy
Status
vagrant status
Vagrant: Status
The extension automatically finds the Vagrantfile files within the workspace and will ask you on which machine to execute the desired command if they are multiple.
Tip You can use the Vagrant: Show Log command to show the console output.
Vagrantfile syntax coloring
Installation
Vagrant
No extra step is required. Simply make sure Vagrant is still correctly installed and available in your PATH environment variable.
Visual Studio Code
Hit Ctrl+P and enter the ext install vagrant command. Warning: be sure to select the extension authored from bbenoist.
Installing the extension locally
Just clone the GitHub repository under your local extensions folder:
Windows: %USERPROFILE%\.vscode\extensions
Mac / Linux: $HOME/.vscode/extensions
Issues / Feature requests
You can submit your issues and feature requests on the GitHub issues page.