On top of anonymous bookmarks (F11 to toggle between activate/deactivate, Shift-F11 to manage), IntelliJ IDEA provides so called numbered bookmarks. What this mean is that on any line of any file managed by IntelliJ IDEA (Java, HTML, XML, JDK source files, etc.), you can define a bookmark that is identified by a number between 0 and 9. Simply put the caret on the desired line and press Ctrl-Shift-<Number> to toggle between activate/deactivate the numbered bookmark. You can then jump to such a numbered bookmark from anywhere within IntelliJ IDEA by triggering Ctrl-<Number>.
For example, place the caret at a point of interest in a Java method and press Ctrl-Shift-1. The gutter to the left will then show a tag labeled with the number 1. You can now jump to this bookmark from anywhere within IntelliJ IDEA by pressing Ctrl-1.
Personally, I find numbered boomarks very handy when working on a specific task where I have to jump back and forth between certain code locations repeatedly. It takes one keystroke to create the numbered bookmark and it takes one keystroke to jump to such a numbered bookmark. It couldn’t be any more efficient.
Subscribe to Blog updates
Thanks, we've got you!
Profile on the Fly With the IntelliJ Profiler
At JetBrains, we believe that profiling should be simple and accessible to all developers, regardless of their level of expertise. That’s why the IntelliJ Profiler puts ease of use and seamless integration at the forefront of its mission. In previous releases, we introduced a range of features to s…
History of Gradle Delegation Process in IntelliJ IDEA
Nowadays, a build tool is an essential part of any project, and IntelliJ IDEA integrates with the majority of them. Among the most popular build tools is Gradle. We’d like to give a brief historical overview of its integration with IntelliJ IDEA and the delegation process implemented inside the I…
How to Work With Protobuf-Maven Projects in IntelliJ IDEA
Protobuf, short for Protocol Buffers, is a language-agnostic data serialization format developed by Google. It is designed to efficiently and reliably serialize structured data to communicate between different systems and programming languages. Protobuf offers a compact binary representation of data…
Turbocharge Lombok annotations with IntelliJ IDEA
If you’re a professional Java developer, you probably use IntelliJ IDEA as your IDE and Lombok as the framework that handles the Java boilerplate. What you probably didn’t know is that not only do these 2 technologies work well on their own, but when combined, they’re even more efficient than when u…