Community Florin Pățan

Florin Pățan

Developer in Go and a big fan of GoLand

tip

Fill Paragraph for Go Comments
Ensure that comments have the width you like.

tip

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

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.

tip

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

playlist

New Features in GoLand 2021.2
A selection of useful features from GoLand 2021.2

tip

Declare a targeted Go version in go.mod
The IDE is aware of targeted Go versions

tip

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

tip

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

tip

Pause and unpause containers
Test what happens to microservices when they try to talk with an unavailable service

tip

Inspect device_cgroup_rules values for errors
Check if the device_cgroup_rules values contain any errors

tip

Inspect port mapping for errors in docker-compose.yaml files
Check if the ports are correctly mapped or not

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

tip

Inspect size_size values for errors in docker-compose.yaml files
Check if the shm_size values contain any errors

tip

Restart a running container
Start with a container from zero, faster

tip

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

tip

Configure custom namespaces manually
Use all the features you need even if the plugin cannot process the namespaces automatically

tip

Load go.mod changes manually
Take control of when go.mod files are refreshed

tip

Create a Scratch file from selection
Create scratches faster and get the contents you want to test pre-populated

tip

Remove empty scratches automatically
Let the IDE handle the cleanup after testing your ideas

tip

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

tip

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

tip

Select the builtin Terminal cursor shape
Make the terminal your own, with the cursor shape you want

tip

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

tip

Search text in Local History
Find exactly what you are looking for, even if you removed it

tip

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

tip

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

tip

Run tests before commit
Make sure your tests pass before reaching the CI/CD pipeline

tip

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

tip

Reload browser pages on save
Work on your frontend then switch to the browser to see how it looks like

tip

Completion for parameter types based on function calls
Better code completion makes working on modern web frontends faster and more enjoyable

tip

Live Template for arrow function
Create arrow functions quicker thanks to builtin customizable templates

tip

Sign Git commits with GPG keys
Improve the security of your commits by using GPG keys

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

tip

Refactor names in React useState hooks
Rename both values of from useState hooks at once

tip

Support for TypeScript types in JSDoc
Give the IDE new powers thanks to TypeScript-based types

tip

Change the editor font size using the mouse wheel
Increase or decrease the font size on-the-fly

playlist

New Features in GoLand 2021.1
A selection of useful features from GoLand 2021.1

tip

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

tip

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

tip

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

tip

Change struct tag style
Quickly change from different styles the struct tags

tip

Check APIs from the comfort of your IDE
Quickly inspect APIs and make HTTP requests to services in a reusable manner

tip

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

tip

Create missing struct types with all fields
Prototype your code then worry about creating the types

tip

Extract Type Refactoring
Extract a type into its own definition and improve the reusability in your code

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

tip

Support for go:embed directive
Embed files and folders into your binaries with no external tool

tip

Handle Go errors by using a Postfix Completion
Keep writing code as you would and use the Postfix Completion to generate the boilerplate

tip

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

tip

Convert Kubernetes resources definition formats
Quickly switch between List and Multidocument YAML for Kubernetes resource definitions

tip

Quickly handle errors in Go
Handling errors is essential in any application

tip

Rename Go module refactoring
Upgrade Go modules to newer versions with ease

tip

Run Target support via WSL
Run your application or tests in Windows Subsystem for Linux (WSL) with ease

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

playlist

New Features in GoLand 2020.3
A selection of useful features from GoLand 2020.3

tip

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

tip

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

tip

Better time format in completion
Use the commonly known date/time formatting strings while writing time formatting in Go

tip

Download the log from a Kubernetes pod
Comb the pod log for the details needed from the comfort of your computer

tip

Drag & drop editor tabs
Change how the editor tabs are grouped or split using drag&drop

tip

Dump goroutines from a running application
Inspect the goroutines and memory of your application as it runs

tip

Go 1.16: retract directive
Retract specific versions of your modules

tip

Inline watches in debugger
Keep your eyes on the code at all times

tip

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

tip

Check context.CancelFunc usage
Ensure that the cancel function is always called

tip

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

tip

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

tip

Live Template to write benchmark function
Write benchmarks quicker thanks to the builtin bench live template.

tip

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

tip

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

tip

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

tip

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

tip

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

tip

Rerun testify subtests
Rerun just the subtest you need from a testify suite.

tip

Run individual testify test suites
Run only the testify test suites or subtests that matter to you

tip

Run a single test from a table test
Focus your testing on new test cases or tests that fail

tip

Perform simple math in Search Everywhere
Quickly perform simple math operations from the comfort of your IDE.

tip

Stop a Remote process after debugging it
Clean-up processes after interacting with them in remote debugging scenarios

tip

Tailwind CSS support
Enjoy working with Tailwind CSS from the comfort of your IDE.

tip

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

tip

Completion for testify test names
Let your IDE add constructor arguments to your instance.

tip

Detect variable shadowing while writing Go code
Easily spot where you shadow variables that you did not intend to

tip

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

playlist

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

tip

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

tip

Adding Fields To a Struct
Let your IDE add constructor arguments to your instance.

tip

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

tip

Auto-Run Tests
Get into testing mode by telling GoLand to automatically re-run tests as you type.

tip

Conditional Breakpoints
Speed up your debugging by stopping execution only when you want to.

tip

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

tip

Disable Tabs
Save space and stay keyboard-centric by turning off the tabs.

tip

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

tip

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

tip

Install and import
While typing a symbol, let GoLand install it and generate the import.

tip

Move Block Up/Down Using Keyboard
Use the keyboard to move a line or selection up or down in your file.

tip

Activate Navigation Bar
Bring up the Navigation Bar as needed, let it disappear when finished.

tip

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

tip

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

tip

Navigate to Symbol
Navigate your project by code, not files.

tip

Optimize Imports
Automate the organizing and cleaning up of your Go imports with Optimize Imports.

tip

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

tip

Quick Documentation
View arguments and documentation without interrupting your flow.

tip

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

tip

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

tip

Reformat Code
Tell GoLand to clean up indentation and other code style in your file.

tip

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

tip

Run Single Test
Speed up testing by focusing on one test.

tip

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

tip

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

tip

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

playlist

Editing Tips & Tricks
Learn some of the most useful Editing features of GoLand.

tip

Call Hierarchy
Analyze call trees for functions or methods

tip

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

tip

Custom Structure tags
Add custom tags to any fields from structures

tip

Expanding/shrinking selection
Select portions of code that you need to, faster

tip

Generate a test for an element
Automate test generation

tip

Hide all tool windows
Hide all the tool windows in the IDE

tip

Go to/from a test
Navigate to and from a test subject like a method or function

tip

Implement an interface
Implementing an interface is a common task that Go programmers need to do

tip

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

tip

Multiple selections
Select multiple items faster

tip

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

tip

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

tip

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

tip

Recent Locations
Jump back and forth between files using code snippets you've recently seen

tip

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

tip

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

tip

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

tip

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

tip

Structure tags
Quickly add tags to any fields from structures

tip

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

tip

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

tip

Type Hierarchy
Discover what types implement an interface or what interfaces are implemented by a type

author

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

playlist

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

tip

Basic Code Completion
Code completion that helps you get the job done

tip

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

tip

Code completion in Evaluate Expression, Watches or Conditional Breakpoints
The debugger also has code completion capabilities.

tip

Code completion in Run Configurations
Run configurations also have code completion capabilities.

tip

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

tip

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

tip

Cyclic Expand Word a.k.a. Hippie Completion
Complete any word any from the current open files.

tip

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

tip

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

tip

Live Templates
Add your own completion items via code snippets

tip

View Parameter Info
Quickly see function arguments and argument types.

tip

Smart Code Completion
The king of code completion in GoLand.

tip

Postfix Completion
Transform an expression into another one.

tip

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