Loading...
Loading...
Compare original and translation side by side
| Question Type | Search Strategy |
|---|---|
| "Where is user authentication?" | Search for auth keywords + login patterns |
| "How does data flow work?" | Find models, services, controllers pattern |
| "Which file handles X API?" | Search endpoints + route definitions |
| "Find all database queries" | Search ORM patterns, SQL keywords |
| "Locate error handling" | Find try-catch, error classes |
| 问题类型 | 搜索策略 |
|---|---|
| "用户认证在哪里实现?" | 搜索auth相关关键词 + 登录模式 |
| "数据流是如何工作的?" | 查找models、services、controllers模式 |
| "哪个文件处理X API?" | 搜索端点 + 路由定义 |
| "查找所有数据库查询" | 搜索ORM模式、SQL关键词 |
| "定位错误处理逻辑" | 查找try-catch、错误类 |
| Tool | Best For | Example |
|---|---|---|
| Text pattern matching | |
| File name/path matching | |
| Code structure matching | |
| LSP tools | Symbol and reference finding | |
| Historical context | |
| 工具 | 最佳适用场景 | 示例 |
|---|---|---|
| 文本模式匹配 | |
| 文件名/路径匹配 | |
| 代码结构匹配 | |
| LSP工具 | 符号与引用查找 | |
| 历史上下文查询 | |
rg "X|x"rg "related|terms"ls src/X/rg "X" tests/rg "X|x"rg "related|terms"ls src/X/rg "X" tests/tree -L 2ls -la src/fd -e tsrg -c "class|function"tree -L 2ls -la src/fd -e tsrg -c "class|function"fd authrg "authentication"ast-grep --pattern "class $NAME"lsp_workspace_symbolsfd authrg "authentication"ast-grep --pattern "class $NAME"lsp_workspace_symbolsundefinedundefinedundefinedundefined