Home > Software design >  GoLand IDE cannot recognize Go files, intellisense/code completion not working
GoLand IDE cannot recognize Go files, intellisense/code completion not working

Time:08-19

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?

CodePudding user response:

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

CodePudding user response:

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.

  • Related