CommunityFlorin Pățan

Florin Pățan

Developer in Go and a big fan of GoLand

Fill Paragraph for Go Comments

tip

Fill Paragraph for Go Comments
Ensure that comments have the width you like.
Write SQL queries using popular database packages

tip

Write SQL queries using popular database packages
Work with SQL queries and get completion and other features automatically.
Query MongoDB databases

tip

Query MongoDB databases
Run any queries you want against the database from the comfort of your IDE.
Connect from the IDE to a MongoDB database

tip

Connect from the IDE to a MongoDB database
Gain access to the database from the IDE and do all the work in the same window.
Declare a targeted Go version in go.mod

tip

Declare a targeted Go version in go.mod
The IDE is aware of targeted Go versions
Improved display of attached projects

tip

Improved display of attached projects
Work with multiple projects at once from the same IDE window
Cleanup unused IDE directories

tip

Cleanup unused IDE directories
If you stopped using an older version of the IDE, it's the right time to do some cleanup
Inspect device_cgroup_rules values for errors

tip

Inspect device_cgroup_rules values for errors
Check if the device_cgroup_rules values contain any errors
Pause and unpause containers

tip

Pause and unpause containers
Test what happens to microservices when they try to talk with an unavailable service
Quick documentation for keys in Dockerfiles and docker-compose.yaml files

tip

Quick documentation for keys in Dockerfiles and docker-compose.yaml files
Learn about what the keys mean, find out how to use them, or what values they accept
Restart a running container

tip

Restart a running container
Start with a container from zero, faster
Go 1.17: Convert slice to array pointer

tip

Go 1.17: Convert slice to array pointer
With Go 1.17, it is possible to covert a slice to an array pointer
Configure custom namespaces manually

tip

Configure custom namespaces manually
Use all the features you need even if the plugin cannot process the namespaces automatically
Load go.mod changes manually

tip

Load go.mod changes manually
Take control of when go.mod files are refreshed
Remove empty scratches automatically

tip

Remove empty scratches automatically
Let the IDE handle the cleanup after testing your ideas
Run actions on save

tip

Run actions on save
Perform various tasks after you save the files you work on
Run gofmt after the builtin formatter

tip

Run gofmt after the builtin formatter
Ensure that your code is always formatted with gofmt.
Select the builtin Terminal shell

tip

Select the builtin Terminal shell
Run multiple shells from the same UI with ease
Select the builtin Terminal cursor shape

tip

Select the builtin Terminal cursor shape
Make the terminal your own, with the cursor shape you want
Search text in Local History

tip

Search text in Local History
Find exactly what you are looking for, even if you removed it
Detect unused dependencies in go.mod files

tip

Detect unused dependencies in go.mod files
Cleanup go.mod files and keep them lean
Cleanup code before commit

tip

Cleanup code before commit
Remove all the redundant parenthesis and other unneeded code before commit
Run inspections before commit

tip

Run inspections before commit
Catch all issues before your code reaches the upstream
Run tests before commit

tip

Run tests before commit
Make sure your tests pass before reaching the CI/CD pipeline
Sign Git commits with GPG keys

tip

Sign Git commits with GPG keys
Improve the security of your commits by using GPG keys
Live Template for arrow function

tip

Live Template for arrow function
Create arrow functions quicker thanks to builtin customizable templates
Completion for parameter types based on function calls

tip

Completion for parameter types based on function calls
Better code completion makes working on modern web frontends faster and more enjoyable
Code Completion for classnames and clsx libraries in React code

tip

Code Completion for classnames and clsx libraries in React code
Spend less time typing or explore the possibilities for various CSS class names in React aps
Reload browser pages on save

tip

Reload browser pages on save
Work on your frontend then switch to the browser to see how it looks like
Refactor names in React useState hooks

tip

Refactor names in React useState hooks
Rename both values of from useState hooks at once
Support for TypeScript types in JSDoc

tip

Support for TypeScript types in JSDoc
Give the IDE new powers thanks to TypeScript-based types
Create a Scratch file from selection

tip

Create a Scratch file from selection
Create scratches faster and get the contents you want to test pre-populated
New Features in GoLand 2021.2

playlist

New Features in GoLand 2021.2
A selection of useful features from GoLand 2021.2
Change the editor font size using the mouse wheel

tip

Change the editor font size using the mouse wheel
Increase or decrease the font size on-the-fly
Add new fields to struct types from JSON

tip

Add new fields to struct types from JSON
Add new fields in your API objects with a copy-paste
Add keys to struct field tags

tip

Add keys to struct field tags
Quickly add JSON, XML, or custom keys to all struct fields
Builtin HTML preview

tip

Builtin HTML preview
Stop switching to a browser to inspect your template and get instant feedback in your IDE
Change struct tag style

tip

Change struct tag style
Quickly change from different styles the struct tags
Check APIs from the comfort of your IDE

tip

Check APIs from the comfort of your IDE
Quickly inspect APIs and make HTTP requests to services in a reusable manner
Create missing struct types with all fields

tip

Create missing struct types with all fields
Prototype your code then worry about creating the types
Create getters and setters for struct fields

tip

Create getters and setters for struct fields
Generate the support code to access fields indirectly, via getters and setters
Extract Type Refactoring

tip

Extract Type Refactoring
Extract a type into its own definition and improve the reusability in your code
Use completion for container names and tags

tip

Use completion for container names and tags
Save a few typos and use completion to handle the container name and tag in a Dockerfile
Support for go:embed directive

tip

Support for go:embed directive
Embed files and folders into your binaries with no external tool
Handle Go errors by using a Postfix Completion

tip

Handle Go errors by using a Postfix Completion
Keep writing code as you would and use the Postfix Completion to generate the boilerplate
Convert JSON to Go types via copy-paste

tip

Convert JSON to Go types via copy-paste
Converting a JSON response to a Go type has never been faster than this
Convert Kubernetes resources definition formats

tip

Convert Kubernetes resources definition formats
Quickly switch between List and Multidocument YAML for Kubernetes resource definitions
Quickly handle errors in Go

tip

Quickly handle errors in Go
Handling errors is essential in any application
Rename Go module refactoring

tip

Rename Go module refactoring
Upgrade Go modules to newer versions with ease
Run Target support via WSL

tip

Run Target support via WSL
Run your application or tests in Windows Subsystem for Linux (WSL) with ease
Detect incorrect usages of t/b.Fatal* calls in goroutines

tip

Detect incorrect usages of t/b.Fatal* calls in goroutines
Find if tests or benchmarks are using t/b.Fatal* calls inside goroutines incorrectly
New Features in GoLand 2021.1

playlist

New Features in GoLand 2021.1
A selection of useful features from GoLand 2021.1
Query MongoDB databases using SQL statements

tip

Query MongoDB databases using SQL statements
Run MongoDB queries in SQL format from the comfort of your IDE.
Assert completion in testify

tip

Assert completion in testify
Write testify asserts faster thanks to the IDE smartness
Better time format in completion

tip

Better time format in completion
Use the commonly known date/time formatting strings while writing time formatting in Go
Drag & drop editor tabs

tip

Drag & drop editor tabs
Change how the editor tabs are grouped or split using drag&drop
Dump goroutines from a running application

tip

Dump goroutines from a running application
Inspect the goroutines and memory of your application as it runs
Download the log from a Kubernetes pod

tip

Download the log from a Kubernetes pod
Comb the pod log for the details needed from the comfort of your computer
Go 1.16: retract directive

tip

Go 1.16: retract directive
Retract specific versions of your modules
Detect incorrect usage of Println/Printf like functions

tip

Detect incorrect usage of Println/Printf like functions
Formatting functions from packages such as pkg/errors, logrus or zap
Inline watches in debugger

tip

Inline watches in debugger
Keep your eyes on the code at all times
Check context.CancelFunc usage

tip

Check context.CancelFunc usage
Ensure that the cancel function is always called
Live Template to write benchmark function

tip

Live Template to write benchmark function
Write benchmarks quicker thanks to the builtin bench live template.
Live Template to create a for loop in benchmark functions

tip

Live Template to create a for loop in benchmark functions
Benchmark loops are repetitive, so let the IDE handle this for you
Live Template to create test function

tip

Live Template to create test function
Write tests faster thanks to the builtin func Test live template.
Navigate to subtests in table tests

tip

Navigate to subtests in table tests
Jump to the specific test case from the results window
Open Console in Kubernetes

tip

Open Console in Kubernetes
Attach to the console of a process running inside a container of the selected pod.
Open Shell in Kubernetes

tip

Open Shell in Kubernetes
Run an interactive shell for the container in the selected pod.
Open file in split editor

tip

Open file in split editor
View two files side-by-side by directly opening the second one in a split-editor mode
Preview file contents

tip

Preview file contents
Have a look at what's in the file without opening it.
Rerun testify subtests

tip

Rerun testify subtests
Rerun just the subtest you need from a testify suite.
Run individual testify test suites

tip

Run individual testify test suites
Run only the testify test suites or subtests that matter to you
Run a single test from a table test

tip

Run a single test from a table test
Focus your testing on new test cases or tests that fail
Perform simple math in Search Everywhere

tip

Perform simple math in Search Everywhere
Quickly perform simple math operations from the comfort of your IDE.
Stop a Remote process after debugging it

tip

Stop a Remote process after debugging it
Clean-up processes after interacting with them in remote debugging scenarios
Sync the IDE theme with the OS theme

tip

Sync the IDE theme with the OS theme
Have your IDE theme synchronize with your OS one throughout the day.
Tailwind CSS support

tip

Tailwind CSS support
Enjoy working with Tailwind CSS from the comfort of your IDE.
Completion for testify test names

tip

Completion for testify test names
Let your IDE add constructor arguments to your instance.
Detect variable shadowing while writing Go code

tip

Detect variable shadowing while writing Go code
Easily spot where you shadow variables that you did not intend to
Support for Vue.js 3

tip

Support for Vue.js 3
Upgrade to using the latest Vue.js version knowing your IDE will be there to help you.
New Features in GoLand 2020.3

playlist

New Features in GoLand 2020.3
A selection of useful features from GoLand 2020.3
Adding Fields To a Struct

tip

Adding Fields To a Struct
Let your IDE add constructor arguments to your instance.
Add Line After/Before

tip

Add Line After/Before
Smart-add a line, from the middle of a line, after or before the current line.
Auto-Run Tests

tip

Auto-Run Tests
Get into testing mode by telling GoLand to automatically re-run tests as you type.
Navigate Cursor Position Back and Forth

tip

Navigate Cursor Position Back and Forth
Navigate back to where you were, or where you went.
Conditional Breakpoints

tip

Conditional Breakpoints
Speed up your debugging by stopping execution only when you want to.
Create a Project from GitHub

tip

Create a Project from GitHub
Let GoLand do the work to clone and set up a project hosted on GitHub.
Disable Tabs

tip

Disable Tabs
Save space and stay keyboard-centric by turning off the tabs.
Evaluate Expression During Debugging

tip

Evaluate Expression During Debugging
Select your code and execute it, in the right context.
Generate Imports While Typing

tip

Generate Imports While Typing
Avoid interruption by letting GoLand generate your imports as you type.
Install and import

tip

Install and import
While typing a symbol, let GoLand install it and generate the import.
Move Block Up/Down Using Keyboard

tip

Move Block Up/Down Using Keyboard
Use the keyboard to move a line or selection up or down in your file.
Find In Path With Navigation Bar

tip

Find In Path With Navigation Bar
Use keyboard and Navigation Bar to find files under a path.
Activate Navigation Bar

tip

Activate Navigation Bar
Bring up the Navigation Bar as needed, let it disappear when finished.
Create New File With Navigation Bar

tip

Create New File With Navigation Bar
Activate the Navigation Bar and create a new file somewhere in the project tree.
Optimize Imports

tip

Optimize Imports
Automate the organizing and cleaning up of your Go imports with Optimize Imports.
Put New Project Under Version Control

tip

Put New Project Under Version Control
The fastest way to register a new project directory under local version control.
Quick Documentation

tip

Quick Documentation
View arguments and documentation without interrupting your flow.
Reduce Clutter by Disabling Tools

tip

Reduce Clutter by Disabling Tools
Save space by turning off various toolbars and Project Tool.
Reformat Code

tip

Reformat Code
Tell GoLand to clean up indentation and other code style in your file.
Rename a File and Its References

tip

Rename a File and Its References
Change your mind on a file name, and the IDE makes all the changes for you.
Rename Symbol

tip

Rename Symbol
Change a variable name, class name, or other symbol, across the project.
Run Single Test

tip

Run Single Test
Speed up testing by focusing on one test.
Spot Coverage Gaps Using the Gutter

tip

Spot Coverage Gaps Using the Gutter
Let the IDE help you spot coverage gaps in your testing.
Split Screen Without Tabs

tip

Split Screen Without Tabs
Get your code and tests side-by-side without using tabs.
Navigate to Symbol

tip

Navigate to Symbol
Navigate your project by code, not files.
General Tips & Tricks

playlist

General Tips & Tricks
Become an IDE power-user with these bite-sized tips and tricks.
Complete Current Statement

tip

Complete Current Statement
Add trailing commas or braces and move the cursor with a single keystroke
Call Hierarchy

tip

Call Hierarchy
Analyze call trees for functions or methods
Compare with clipboard

tip

Compare with clipboard
Compare text, files or directories and even use the clipboard contents
Custom Structure tags

tip

Custom Structure tags
Add custom tags to any fields from structures
Expanding/shrinking selection

tip

Expanding/shrinking selection
Select portions of code that you need to, faster
Generate a test for an element

tip

Generate a test for an element
Automate test generation
Go to/from a test

tip

Go to/from a test
Navigate to and from a test subject like a method or function
Hide all tool windows

tip

Hide all tool windows
Hide all the tool windows in the IDE
Implement an interface

tip

Implement an interface
Implementing an interface is a common task that Go programmers need to do
Jump to the Navigation Bar

tip

Jump to the Navigation Bar
Get an overview of your current location, and the project itself
Multiple selections

tip

Multiple selections
Select multiple items faster
Navigate between opened files using the Switcher

tip

Navigate between opened files using the Switcher
Don't use the mouse to quickly move between multiple files
Navigate to File

tip

Navigate to File
Jump to a file without using the Project Tool Window, and your mouse
Paste from history

tip

Paste from history
Paste from the clipboard even if it's not the last item you copied into it
Recent Locations

tip

Recent Locations
Jump back and forth between files using code snippets you've recently seen
Select all occurrences in a file

tip

Select all occurrences in a file
Quickly select all occurrences of a piece of text in the current file
Select in

tip

Select in
Select the current file in the Project or Changes view and more
Show usages

tip

Show usages
Quickly discover the usages of the element your cursor is at
Speed typing

tip

Speed typing
Quickly navigate to or filter any list of items in the IDE
Structure tags

tip

Structure tags
Quickly add tags to any fields from structures
Structure popup

tip

Structure popup
View the file or whole package structure and navigate to any element
Switch to the editor

tip

Switch to the editor
Get the focus back to the editor regardless what is currently focused
Type Hierarchy

tip

Type Hierarchy
Discover what types implement an interface or what interfaces are implemented by a type
Editing Tips & Tricks

playlist

Editing Tips & Tricks
Learn some of the most useful Editing features of GoLand.
Florin Pățan

author

Florin Pățan
Developer in Go and a big fan of GoLand
Basic Code Completion

tip

Basic Code Completion
Code completion that helps you get the job done
Code Completion in Language Injections

tip

Code Completion in Language Injections
See how to use code completion inside strings and other places
Code completion in Run Configurations

tip

Code completion in Run Configurations
Run configurations also have code completion capabilities.
Completion for non-imported Go Modules

tip

Completion for non-imported Go Modules
Import a module even if it was imported or used in your project
Completion with the Tab key

tip

Completion with the Tab key
A small, but handy feature that makes it a little easier to complete symbol names.
Cyclic Expand Word a.k.a. Hippie Completion

tip

Cyclic Expand Word a.k.a. Hippie Completion
Complete any word any from the current open files.
Exclude items from auto-imports and completion

tip

Exclude items from auto-imports and completion
Exclude certain paths from auto-import and completion
Live Templates

tip

Live Templates
Add your own completion items via code snippets
Method-like completion for functions

tip

Method-like completion for functions
Completion for searching for functions that accept parameters of a certain type.
Partial Match Completion

tip

Partial Match Completion
Complete anything by typing just parts of the identifier
View Parameter Info

tip

View Parameter Info
Quickly see function arguments and argument types.
Smart Code Completion

tip

Smart Code Completion
The king of code completion in GoLand.
Postfix Completion

tip

Postfix Completion
Transform an expression into another one.
Completion Tips & Tricks

playlist

Completion Tips & Tricks
Know everything there is to know about Code Completion.