Avior Peretz
Avior Peretz

Reputation: 11

GoLand IDE cannot recognize Go files, intellisense/code completion not working

I'm trying to write some basic Go file and I don't have any code completion / intellisense when working only with go files.

Go file intellisense picture

Otherwise, when trying to write JS code for example it works great:

JS file intellisense picture

Any thoughts?

Upvotes: 1

Views: 1282

Answers (2)

s0xzwasd
s0xzwasd

Reputation: 3224

Navigate to Preferences | Editor | File Types, find Text or File type auto-detected by context and remove main.go from the file name patterns list.

Upvotes: 0

Bhomaram Jangid
Bhomaram Jangid

Reputation: 37

You have to set some settings like GOPATH and GOROOT in your IDE. This is a setup process screenshot of an IDE setting.

enter image description here

enter image description here

Upvotes: 1

Related Questions