The preview window of the search file content in IDEA does not display the complete content (not that the number of search results is limited, it is a preview of a single search result)

background

There are two big pits in the search configuration problem in IDEA. The first one is mentioned before. If the search results exceed 100, the results beyond 100 will not be displayed (can be changed). The second pit is that the display is incomplete. Take the search properties configuration as an example, such as

if.longer.than.200.will.not.display.full=/user/foo/{userId}/pets/{petId}/property/{propertyId}/account/{accountId}/bills/{billId}/foo/bar/example/chunk/retain/filter_out/fell_free/disconnect/history/{historyId}

The configuration includes the key, if the number of characters > 200, it will be truncated. The above configuration has 210 chars, and you can see that the preview is truncated to /example.

The position of truncation is also quite strange, not the logic of substring(0,200). This preview ends when it reaches /example, and it is easy to make people mistakenly think that it ends when the endpoint reaches /example
insert image description here

if.longer.than.200.will.not.display.full=/user/foo/{userId}/pets/{petId}/property/{propertyId}/account/{accountId}/bills/{billId}/foo/bar/example/chunk/retain/filter_out/fell_free/disconnect/history/{

The above is exactly 200 characters, which can be fully displayed, but more characters will not work, and less characters can be fully displayed. Explain that 200 is the boundary
insert image description here

insert image description here
insert image description here

Solution

I haven't found where to set it in IDEA yet. Please leave a message if you know.

Guess you like

Origin blog.csdn.net/w8y56f/article/details/131304508