是否可以使编辑器中的文本可单击? [英] Is it possible to make text in the editor clickable?

查看:63
本文介绍了是否可以使编辑器中的文本可单击?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在扩展,我想使某些文本可单击(然后基于该文本运行命令).我想我可以解决如何更改文本突出显示的问题,但是找不到有关如何与文本进行交互的任何信息.某物 例如,使某些文本看起来像超链接,甚至在这种情况下,甚至实际的超链接都可以为我工作.

I'm making an extension, and I'd like to make certain text clickable (and then run a command based on that text). I think I can work out how to change the highlighting for the text, but can't find any information about how to interact with it. Something like making certain text look like a hyperlink, or even an actual hyperlink would work for me in this case.

我已经读过有关灯泡的东西,也许我可以劫持它,但这似乎不是一个好的解决方案.

I've read about the lightbulb stuff, and maybe I could hijack that, but that doesn't seem like a good solution.

推荐答案

tnt monty,

Hi tnt monty,

该论坛讨论的是Visual Studio WPF/SL设计器,Visual Studio指导自动化工具包,开发人员文档和帮助系统以及Visual Studio编辑器.

This forum is discuss Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.

由于您的问题与扩展开发有关,因此我可以帮助您将此线程移至Visual Studio Integrate论坛以获得更好的帮助.

Since your problem is related to extension development, I help you move this thread to Visual Studio Integrate forum for a better help.

最好的问候,
Weiwei

Best Regards,
Weiwei


这篇关于是否可以使编辑器中的文本可单击?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆