Ben Guild
Ben Guild

Reputation: 5116

Add Cmd+Click navigation to definition in Atom editor with Golang?

Does anyone know if it's possible to jump around code in a project by Control/Cmd+Click? I keep right-clicking and doing "Go to Definition" but that doesn't seem to work.

Upvotes: 1

Views: 1144

Answers (1)

zmb
zmb

Reputation: 7867

The "Go to Definition" option is built-in to Atom and requires ctags, which is a bit of work to set up for Go. Instead, you can install the navigator-go package, which will allow you to jump to definition with a keyboard shortcut.

If you prefer cmd+click as opposed to a keyboard shortcut, you can also install:

* Note: navigator-go was recently renamed, and go-hyperclick still points at the old repo, so you may get some warnings about a missing package until this PR is merged.

Upvotes: 2

Related Questions