I have been using Pycharm to write Python code for a while. I recently discovered a little trick of Pycharm that I would like to share with you. The following article mainly introduces you to the relevant information on how to roll back Pycharm code jumps. In the article The introduction is very detailed and has certain reference and learning value for everyone. Friends who need it can take a look below.
Background
I have been playing Python for a while recently, usually using vim and Pycharm for development. I really feel that this The two are artifacts. Let’s not talk about the Vim artifact for the time being. Today I will share a little trick of Pycharm. I won’t say much below, let’s take a look at the detailed introduction.
Everyone who uses Pycharm knows that it has a jump function, which allows us to quickly jump to the specific definition when we want to learn more about a function/library. The method is: press Hold ctrl, and then left-click the function name/library name.
When we jump to the past and see the specific implementation that we want to see, the question arises, how to jump back? So the approach I took is Press CTR+F and enter the function name of the previous function to locate and return to the previous function. I couldn't bear to look at it. I remembered that when I used Source Insight, there was a forward and backward function, which was very convenient, so I thought that Pycharm didn't have this function, which was really a bit painful. However, I found that I was too naive, and I found out after searching on Google. It turns out that people have always had this thoughtful little function, but it was just hidden!
How to open it in the correct posture:
1. Find the Toolbar under View and check
2. The button appears
The left side is to go back, and the right side is to go forward. From now on, you no longer have to worry about finding your way home~ In addition to pycharm, Clion and other compilers from their family can be used. Come and try it. ~
The above is the detailed content of Detailed explanation of return operation after Pycharm code jumps. For more information, please follow other related articles on the PHP Chinese website!