搜索

PythonReactSEOPDF
GitHub Skill

dotnet-symbol-grep-recipes

Quick ripgrep recipes for common C# navigation tasks in this repo.

bravellian☆ 0 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

dotnet-symbol-grep-recipes

Short, practical ripgrep commands for navigating the codebase.

Find Type/Interface/Record Definition

rg -n "\b(class|interface|record|struct)\s+<Name>\b" -g "*.cs"

Find Implementations of Interface

rg -n "\bclass\s+\w+\s*:\s*[^\n]*\b<Interface>\b" -g "*.cs"

Find DI Registrations

rg -n "\b(AddSingleton|AddScoped|AddTransient)\b.*\b<Interface>\b" -g "*.cs"

Find Handlers/Controllers/Endpoints

rg -n "\bclass\s+\w+(Handler|Controller)\b" -g "*.cs"
rg -n "\bMap(Get|Post|Put|Delete|Patch)\b" -g "*.cs"

Find Tests Related to a Class

rg -n "\b<ClassName>(Tests|Test)\b" -g "*Tests*.cs"
rg -n "\b<ClassName>\b" -g "*Tests*.cs"

MSTest Test Discovery

rg -n "\[TestClass\]|\[TestMethod\]|\[DataTestMethod\]|\[DataRow\]" -g "*.cs"

Find Razor Pages

rg -n "\bclass\s+\w+Model\s*:\s*PageModel\b" -g "*.cs"
rg --files -g "*.cshtml"

Find Module Marker Interfaces

rg -n "\bclass\s+\w+\s*:\s*[^\n]*\b(I|IFullStack|IBackground|IEngine|IApi)Module\b" -g "*.cs"
rg -n "\bIModuleDefinition\b|\bIIncursaNavModuleMetadata\b" -g "*.cs"

Find Custom Generated File Definitions

rg --files -g "*.dto.json" -g "*.enum.json" -g "*.fastid.json"

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!