A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/golang/vscode-go/wiki/commands below:

commands · golang/vscode-go Wiki · GitHub

In addition to integrated editing features, this extension offers a number of commands, which can be executed manually through the Command Palette (Ctrl+Shift+P on Linux/Windows or Cmd+Shift+P on Mac OS).

Some of these commands are also available in the VS Code context menu (right-click). To control which of these commands show up in the editor context menu, update the "go.editorContextMenuCommands" setting.

All commands provided by this extension have the prefix Go:.

The commands described below are up-to-date as of June 2020. We do our best to keep documentation current, but if a command is missing, you can always consult the full list in the Extensions view.

To view this list:

  1. Navigate to the Extensions view (Ctrl+Shift+X).
  2. Find the Go extension and click on it to open the Extension Editor.
  3. Click on the Feature Contributions tab.
  4. Scroll through the list under Commands.

Finally, you can also see a full list by using a meta command: Go: Show All Commands....

See the currently set GOPATH.

See the currently set GOROOT.

Go: Locate Configured Go Tools

List all the Go tools being used by this extension along with their locations.

Go: Test Function At Cursor

Runs a unit test at the cursor.

Go: Test Function At Cursor or Test Previous

Runs a unit test at the cursor if one is found, otherwise re-runs the last executed test.

Runs a sub test at the cursor.

Go: Debug Subtest At Cursor

Debug a sub test at the cursor.

Go: Benchmark Function At Cursor

Runs a benchmark at the cursor.

Debug test at the cursor.

Runs all unit tests in the current file.

Runs all unit tests in the package of the current file.

Go: Toggle Hide System Goroutines

Toggles hiding the system goroutines from the active debug session call stack view.

Refresh a test in the test explorer. Only available as a context menu option in the test explorer.

Go Test: Show Last Profile

Show last captured profile

Run a test and capture a profile

Delete selected profile

Internal use. Open a pprof profile file.

Runs all benchmarks in the package of the current file.

Runs all benchmarks in the current file.

Go: Test All Packages In Workspace

Runs all unit tests from all packages in the current workspace.

Re-runs the last executed test.

Re-runs the last debugged test run through a codelens or "Go: Debug Test at Cursor" command.

Go: Toggle Test Coverage In Current Package

Displays test coverage in the current package.

Go: Generate Unit Tests For Package

Generates unit tests for the current package using gotests

Go: Generate Unit Tests For File

Generates unit tests for the current file using gotests

Go: Generate Unit Tests For Function

Generates unit tests for the selected function in the current file using gopls

Go: Generate Unit Tests For Function (legacy)

Generates unit tests for the selected function in the current file using gotests

Go: Generate Interface Stubs

Generates method stub for implementing the provided interface and inserts at the cursor.

Go: Extract Language Server Logs To Editor

Extract logs in the gopls (server) output channel to the editor.

Open the welcome page for the Go extension.

Go: Toggle compiler optimization details

Toggle the per-package flag that causes compiler optimization details to be reported as diagnostics

Add an import declaration

Go: Add Package to Workspace

Add a package from the imports list to the workspace.

install/update the required go packages

Toggles between file in current active editor and the corresponding test file.

Toggle the display of vulnerability analysis in dependencies.

Go: Start language server's maintainer interface

Start the Go language server's maintainer interface (a web server).

Go: Add Tags To Struct Fields

Add tags configured in go.addTags setting to selected struct using gomodifytags (via gopls)

Go: Remove Tags From Struct Fields

Remove tags configured in go.removeTags setting from selected struct using gomodifytags (via gopls)

Shows all commands from the Go extension in the quick pick

Browse packages and Go files inside the packages.

Run go get -v on the package on the current line.

Upload the current selection or file to the Go Playground

Run linter in the package of the current file.

Run linter in the current workspace.

Run go vet in the package of the current file.

Run go vet in the current workspace.

Go: Build Current Package

Build the package of the current file.

Build the current workspace.

Go: Install Current Package

Install the current package.

Run go mod init in the workspace folder.

Cancels running tests.

Applies existing cover profile.

Go: Restart Language Server

Restart the running instance of the language server

Go: Choose Go Environment

Choose a different Go version or binary for this project. (WIP)

Go: Show Survey Configuration

Show the current Go survey configuration

Go: Reset Survey Configuration

Reset the current Go survey configuration history

Go: Reset Workspace State

Reset keys in workspace state to undefined.

Reset keys in global state to undefined.

Refresh the Go explorer. Only available as a menu item in the explorer.

Open a file from the Go explorer. Only available as a menu item in the explorer.

Edit the Go Env for the active workspace.

Reset the Go Env for the active workspace.

✏️ Want to contribute to this wiki?

Update the source and send a PR.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4