Visual Studio 如何扩展编辑器(转)

+1 for ranting about VS extensibility. It requires way too much boilerplate, it is hard to debug (e.g. you can't set breakpoints on MEF attributes), it is undiscoverable, and things that should be built-in (e.g. brace matching) have to be added manually (or if they are built-in, how can we find them without access to the source code of VS?)

https://github.com/mrlacey/CommentLinks
https://www.mrlacey.com/2020/11/a-festive-introduction-to-visual-studio.html
https://stackoverflow.com/questions/17167423/creating-a-tagger-that-has-more-than-one-tag-type-for-vs-extension

参考

Getting Started with Language Service and Editor Extensions

Inside The Editor 介绍概念和定义

Managed Extensibility Framework in the editor 容器组件

Language service and editor extension points 编辑器扩展点

posted @ 2025-02-15 10:38  dewxin  阅读(19)  评论(0)    收藏  举报