Visual Studio Online
Visual Studio Online provides cloud-powered development environments for any activity - whether it's a long-term project, or a short-term task like reviewing a pull request. You can work with these environments from three possible clients: Visual Studio Code, a browser-based editor, or the Visual Studio IDE (currently in Private Preview).
Environments
An environment is the "backend" half of Visual Studio Online. It's where all of the compute associated with software development happens: compiling, debugging, restoring, etc. When you need to work on a new project, pick up a new task, or review a PR, you can simply spin up a Cloud-hosted environment, and Visual Studio Online takes care of configuring it correctly. It automatically configures everything you need to work on your project: the source code, runtime, compiler, debugger, editor, custom dotfile configurations, relevant editor extensions and more.
Customization
Visual Studio Online's environments are fully customizable on a per project basis. This is accomplished by including a devcontainer.json
file in the project's repository, similar to VS Code Remote Container development.
Example customizations include:
- Setting which Linux-based operating system to use.
- Automatically installing various tools, runtimes, and frameworks.
- Forwarding commonly used ports.
- Setting environment variables.
- Configuring editor settings and installing preferred extensions.
See the VS Online Configuring documentation for VS Online specific devcontainer.json
settings.
Dotfile per user configuration
Dotfiles are files whose filename begins with a dot (.). They typically contain configuration information for applications and can control how terminals, editors, source control, and various other tools behave. .bashrc
, .gitignore
and .editorconfig
are examples of dotfiles commonly used by developers.
You can specify a GitHub repo containing your dotfiles, a target location for the files, as well as install commands when creating a VS Online environment.
See the VS Online Personalizing documentation to learn how to add your dotfile configurations to an environment.
Getting started
The Visual Studio Online documentation has Quickstarts for all three clients. The Quickstarts will fast-track you through signing in to VS Online, creating your first environment, and connecting to it with your preferred client:
- VS Online in VS Code - Use the VS Online extension to connect and work in your environment.
- VS Online in the browser - Connect to your VS Online environment through a browser-based editor.
- VS Online in Visual Studio IDE - Try out the Visual Studio IDE Private Preview for VS Online.
How-to guides
In addition to the Quickstarts, there are How-to guides, which go into more detail about managing and configuring your environments:
- How-to guide: Visual Studio Code - Create and configure an environment from the VS Code client.
- How-to guide: Browser - Create and configure a VS Online environment with only a browser.
Self-hosted environments
If you already have a working development environment, you can connect your own self-hosted environments to Visual Studio Online. This lets you and your team have the same consistent development experience, whether you are working on a managed cloud-hosted environment or your own infrastructure.
Extension authors
The VS Code extension API hides most of the implementation details of running remotely so many extensions will just work in Visual Studio Online environments without any modification. However, we recommend that you test your extension in VS Online to be sure that all of its functionality works as expected. See the article on Supporting Remote Development and Visual Studio Online for details.
Questions or feedback
If you have questions, you can consult the Visual Studio Online Troubleshooting guide and FAQ. If you want to provide Feedback, you can enter issues in the vsonline GitHub repository.