VS Code Setup: Difference between revisions

From bibbleWiki
Jump to navigation Jump to search
Created page with "=Set up GO= Install the GO extension and tools <br> For Gitlab create directory <syntaxhighlight lang="sh"> mkdir -p ${GOROOT}/src/gitlab.com/<username> </syntaxhighlight> <b..."
 
Line 1: Line 1:
=Set up Java=
Install Java JDK
<syntaxhighlight lang="sh">
sudo apt install default-jdk
</syntaxhighlight>
Install Gradle
<syntaxhighlight lang="sh">
sudo add-apt-repository ppa:cwchien/gradle
sudo apt update
sudo apt install gradle
</syntaxhighlight>
In Visual Studio install the Maven for Java and Gradle Tasks
=Set up GO=
=Set up GO=
Install the GO extension and tools
Install the GO extension and tools

Revision as of 03:50, 27 September 2020

Set up Java

Install Java JDK

sudo apt install default-jdk

Install Gradle

sudo add-apt-repository ppa:cwchien/gradle
sudo apt update
sudo apt install gradle

In Visual Studio install the Maven for Java and Gradle Tasks

Set up GO

Install the GO extension and tools
For Gitlab create directory

mkdir -p ${GOROOT}/src/gitlab.com/<username>


Make a config, the default with program changed to ${workspaceRoot}

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "remotePath": "",
            "port":2345,
            "host": "127.0.0.1",
            "program": "${workspaceRoot}",
            "env": {},
            "args": [],
            "showLog": true
        }
    ]
}