|
| 1 | +# Visual Studio Code |
| 2 | + |
| 3 | +https://code.visualstudio.com/ |
| 4 | + |
| 5 | +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. |
| 6 | + |
| 7 | +It has many extensions and plugins and can help you write betetr code faster. |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | +## Download and Install VSCode |
| 12 | + |
| 13 | +To use VSCode, please down load it from here: |
| 14 | +https://code.visualstudio.com/Download |
| 15 | + |
| 16 | +## Download and Install Popular VSCode Extensions |
| 17 | + |
| 18 | +Also install these popular Extensions to help you get started: |
| 19 | + |
| 20 | +- Azure Terraform Extension |
| 21 | +https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azureterraform |
| 22 | + |
| 23 | +- Terraform Extension |
| 24 | +https://marketplace.visualstudio.com/items?itemName=HashiCorp.terraform |
| 25 | + |
| 26 | +- Install Git History Extension |
| 27 | +https://marketplace.visualstudio.com/items?itemName=donjayamanne.githistory |
| 28 | + |
| 29 | +- Install GitLens Extension |
| 30 | +https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens |
| 31 | + |
| 32 | +- YAML Extension |
| 33 | +https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml |
| 34 | + |
| 35 | +- Docker Remote Extension (Dev Containers / Remote Containers) |
| 36 | +https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers |
| 37 | + |
| 38 | +- AWS Toolkit |
| 39 | +https://aws.amazon.com/visualstudiocode/ |
| 40 | + |
| 41 | +- AWS CloudFormation Extension |
| 42 | +https://marketplace.visualstudio.com/items?itemName=aws-scripting-guy.cform |
| 43 | + |
| 44 | +- Dracula Dark Theme |
| 45 | +https://marketplace.visualstudio.com/items?itemName=dracula-theme.theme-dracula |
| 46 | + |
| 47 | +- Live Share Extension |
| 48 | +https://marketplace.visualstudio.com/items?itemName=MS-vsliveshare.vsliveshare-pack |
| 49 | + |
| 50 | +## Using Dev Containers also called Remote Containers with VSCode |
| 51 | + |
| 52 | +https://code.visualstudio.com/docs/devcontainers/containers |
| 53 | + |
| 54 | +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. |
| 55 | + |
| 56 | +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. |
| 57 | + |
| 58 | +## Using Hashiqube as a Dev Container (Development Environment) |
| 59 | + |
| 60 | +- Start Hashiqube with `vagrant up --provision` |
| 61 | + |
| 62 | +- Install the Docker Remote Extension (Dev Containers / Remote Containers) |
| 63 | +https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers |
| 64 | + |
| 65 | +- In VSCode Top Menu, click on View -> Command Palette and type in |
| 66 | +`Dev Containers: Attach to Running Container...` |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | +- Select the running Hashiqube Container |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | +- You are now inside Hashiqube Docker container, and you can work locally an interact with Hashiqube |
| 75 | + |
| 76 | +:bulb: 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. |
| 77 | + |
| 78 | + |
0 commit comments