GoLand
 
Get GoLand
You are viewing the documentation for an earlier version of GoLand.

File Encodings

Last modified: 12 December 2022

File | Settings | Editor | File Encodings for Windows and Linux

GoLand | Preferences | Editor | File Encodings for macOS

Ctrl+Alt+S the Settings/Preferences icon

GoLand uses these settings to view and edit files for which it was unable to detect the encoding and uses the specified encodings for new files.

The Editor | File Encodings settings

If GoLand can't determine the file or directory encodings, it falls back to the configured project encoding. If there is no project, GoLand uses the global encoding. File or directory encodings take precedence over the project encoding, which, in turn, takes precedence over the global encoding.

For more information about handling file encodings, see Encoding.