This article is an introduction to searching for a string in a file using ag or pt and specify the matching line to open in JetBrains IDE. The way to open a file from the command line in the JetBrains IDE is the same for all of them, so will use Goland as an example. You can configure it on Windows, macOS, and Linux that are supported by the JetBrains IDE, but in this article, the only introduction to macOS.