React-find can help you locate files quickly
Of course you can use the context menu to find the current node and its parent nodes
pnpm install react-find
Add the script to your file like pages/app.tsx
:
import init from 'react-find';
init();
Then Press the command(mac) or ctrl(win) and move your mouse to try it, click block will take you to the IDE
You also can right click to find current node and parent node which can find the source file.
If you always use the other IDE,You can init like this
init({ protocol: 'cursor' });
Name | Description | type | default |
---|---|---|---|
protocol | IDE protocol | string | - |
keyCode | keyBoard keyCode | string[] | ['Meta']/['Control'] |