About PhpStorm settings Click to edit the file to automatically locate the source file

咔咔
Release: 2020-11-30 09:23:20
Original
2278 people have browsed it

When usingphpstormas a development software, you will encounter that the source file cannot be located in the list on the left when editing the current file, whether it is for development or There is a certain amount of trouble in writing because it is a waste of time!

Kaka will write a lot about some solutions and solutions during the learning process, but when writing articles You will encounter several problems.

  • When you click to edit a file, the list on the left cannot locate the source file
  • When you locate the source file, all methods of the file will be displayed
  • It is particularly inconvenient to take screenshots

Why it is said that taking screenshots is inconvenient, because when intercepting the corresponding code, you need to directly point out that the corresponding file is At that location in the directory! Otherwise, people who read your article are confused and don’t know where this code is.

In order to solve the problems mentioned above, Kaka also roughly translated the English settings of phpstorm using translation software, which solved the problem that Kaka had been stuck in for a long time.

Implementation Method 1

When taking a screenshot of the code, you will encounter that the file you edited is not accurately positioned on the left side.

At this time, you need to spend a little time to find this file. If you are familiar with the file directory, it is ok.

If you encounter an unfamiliar framework and code, it will be particularly troublesome to find it.

About PhpStorm settings Click to edit the file to automatically locate the source file
The first case display

Let’s first look at how to deal with this problem.

The first solution is to click on the place circled by Kaka. As long as you open the edited file on the right side, and then click on the circle, you will automatically locate the edited file.

About PhpStorm settings Click to edit the file to automatically locate the source file
The first solution

Although this solution can indirectly solve the needs mentioned by Kaka, it is still a bit troublesome, because every time You need to click once, so it’s really annoying to click every time.

So what to do at this time, continue to read.

The circled area is translated as automatically scrolling to the source, so click on it to try it.

About PhpStorm settings Click to edit the file to automatically locate the source file
Settings

It’s very comfortable now. Clicking on that file will automatically locate that file.

About PhpStorm settings Click to edit the file to automatically locate the source file
Solution

Then the first problem is perfectly solved, and you don’t have to click on that circle every time. Isn’t it very comfortable? Anyway, it can save a lot of time for Kaka.

Because Kaka usually writes articles, this function is very practical for Kaka.

But you will find that the located file will display all the methods in this file.

Solution to the second problem

When taking a screenshot, you need to hide all the methods of this file, which is still an extra step.

How is this possible? Kaka really has some obsessive-compulsive disorder.

Then continue to solve this problem.

When you come to the setting interface just now

You can see that this English meaning is the display method.

About PhpStorm settings Click to edit the file to automatically locate the source file
Setting interface

Then just click it and close it!

About PhpStorm settings Click to edit the file to automatically locate the source file
Screenshot after closing

After this series of processing, Kaka’s two major worries were finally solved. I am writing now. It saves a lot of trouble.

Although there are only these two small functions, Kaka has also used phpstorm for three years, and is still very unfamiliar with this software.

These two functional points are of great help to Kaka.

Let Kaka no longer need to mark the file on the left when taking a screenshot, because there will be a highlighted color when locating the source file.

Kaka no longer has to look for where the file is on the left.

How much work can be saved with just these two functions! The purpose of using idea is to facilitate development, not to cause trouble for yourself, so it’s okay to have a good understanding of your own tools!

It will improve your development efficiency a lot.

Persistence in learning, persistence in blogging, and persistence in sharing are the beliefs that Kaka has always upheld since his career. I hope that Kaka’s articles in Nuoda Internet can bring you Any help. I’m Kaka, see you next time.

The above is the detailed content of About PhpStorm settings Click to edit the file to automatically locate the source file. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
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!