Cursor automatically moves in GoLand IDE when switching tabs

王林
Release: 2024-02-08 21:21:08
forward
1116 people have browsed it

切换选项卡时 GoLand IDE 中光标自动转移

What php editor Xiaoxin will introduce to you today is a very practical function in GoLand IDE - automatic cursor transfer when switching tabs. In the process of programming and development, we often need to switch between multiple files, and it is troublesome to manually move the cursor every time we switch. GoLand IDE provides a convenient function that automatically moves the cursor to the last editing position when switching tabs, which greatly improves development efficiency. Next, let’s learn more about how to use this function and what to pay attention to.

Question content

I have a question. When I type something in GoLand IDE and switch to Chrome and then switch back to GoLand IDE, if my cursor is on an empty line, then in Chrome I have that cursor on another line, how do I get rid of it ? p>

I searched and tried many methods, but they all work.

Workaround

Most likely, GoLand saves the file after you switch to another application and in the background calls the gofmt formatter or "save operation" to remove the lines/ Space.

Try turning off the "Save" action or "Save files when switching to a different application or the built-in terminal" in Settings | Tools | "Settings" | Appearance and Behavior | System Settings. . The latter option is not the safest solution, so I recommend disabling "Action on Save" in this case.

The above is the detailed content of Cursor automatically moves in GoLand IDE when switching tabs. For more information, please follow other related articles on the PHP Chinese website!

source:stackoverflow.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!