Scenario:
I often familiarize myself with code structure and functionality through conversations when taking on unfamiliar projects, such as having AI search and display functional code that interfaces with third-party systems. But I found a problem, which is that the code displayed in the dialog box does not show the class and method it belongs to, so I have to search globally for the source of this code, which has brought me a considerable amount of work.
Suggestion:
- In the dialog box on the right, the code snippet found by Ai displays its source, such as the class name and even the method name. When clicking on the class name or method name, it can open and jump to the corresponding class or method definition in the project source code.
- Enhanced functionality, if the code snippets found by AI can display the same line numbers as the source code, clicking on the line number will redirect to the line where the project source code is located, which would be even better.
explain:
As shown in the figure, the top of the code snippet can display the class/method names that can be used for clicking; Display line number on the left