bbenoist / vscode-vagrant

Vagrant support for Visual Studio Code
https://marketplace.visualstudio.com/items/bbenoist.Vagrant
MIT License
38 stars 16 forks source link

Vagrant support for Visual Studio Code

Features

Vagrant machine status

vagrant status

Status Icon
not_created icon
running icon
saved icon
poweroff icon

Vagrant machine management

vagrant demo with a single machine

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.

vagrant up with multiple machines

Vagrantfile syntax coloring

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:

Issues / Feature requests

You can submit your issues and feature requests on the GitHub issues page.

More information