Skip to content

Latest commit

 

History

History

visual-studio-code

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Visual Studio Code

This page has 2 sections:

https://code.visualstudio.com/

VSCode Microsoft Visual Studio Code

Visual Studio Code or VSCode is a Code Editor, also referred to as an IDE. It's made by Microsoft, it's completely free, very powerful and run on all Operating Systems and Architectures.

It has many extensions and plugins and can help you write betetr code faster.

VSCode

Download and Install VSCode

To use VSCode, please down load it from here: https://code.visualstudio.com/Download

Popular VSCode Extensions

Also install these popular Extensions to help you get started:

VSCode Remote Containers

https://code.visualstudio.com/docs/devcontainers/containers

The Visual Studio Code Dev Containers extension lets you use a container as a full-featured development environment. It allows you to open any folder inside (or mounted into) a container and take advantage of Visual Studio Code's full feature set. A devcontainer.json file in your project tells VS Code how to access (or create) a development container with a well-defined tool and runtime stack. This container can be used to run an application or to separate tools, libraries, or runtimes needed for working with a codebase.

Workspace files are mounted from the local file system or copied or cloned into the container. Extensions are installed and run inside the container, where they have full access to the tools, platform, and file system. This means that you can seamlessly switch your entire development environment just by connecting to a different container.

Hashiqube VSCode Dev Container

Dev Containers: Attach to Running Container

  • Select the running Hashiqube Container

Dev Containers: Attach to Running Container

  • You are now inside Hashiqube Docker container, and you can work locally an interact with Hashiqube

💡 Remember to do su - vagrant and cd /vagrant to become the vagrant user so that you work as the vagrant user, you can then issue kubectl or terraform commands if you ran the provisioners first from a terminal on your laptop.

VSCode

VSCode in a Browser

https://code.visualstudio.com/

https://github.com/coder/code-server

VSCode is a free, open source IDE. Code-server runs an instance of VS code that can then be accessed locally via browser. This allows us to start up a predictable VScode instance in Vagrant.

VSCode in a Browser

Provision

In order to provision Visual Studio Code Server (Visual Studio IDE in a browser) you need bastetools, docker as dependencies.

vagrant up --provision-with basetools,docker,vscode-server

Web UI Access

To access the Web UI visit the following address:

http://localhost:7777/

The default password will be printed to console on start up. Else it can be obtained by the following command:

vagrant ssh -c "< ~/.config/code-server/config.yaml head -n "3" | tail -n +"3""

google ads

Future plans

In the future there is potential to add an option for starting different code-server instances. Currently it always launches with the default image. Custom images could be setup that have different things preinstalled (e.g. Image with python, usefull libaries and useful extentions pre installed).

The Code

filename

google ads