gpt4 book ai didi

visual-studio - 如何为 VS2015 创建自定义编辑器?

转载 作者:行者123 更新时间:2023-12-02 05:07:21 25 4
gpt4 key购买 nike

我正在尝试构建一个 Visual Studio 扩展。我的项目是从“VSIX 项目”模板创建的。

根据文档,应该有一个自定义编辑器的模板,但我没有找到它并且无法通过谷歌搜索它。除了 SDK 之外,我是否还遗漏了什么,或者我是否误读了文档?

https://msdn.microsoft.com/en-us/library/bb166460.aspx

To create a VSPackage using the Visual Studio Package template

1.Create a project with the Visual Studio Package template. For more information about using this template, see Creating an Extension with a Menu Command.

2.Select the Custom Editor option and click Next. The Editor Options page is displayed.

3.Type the name of your editor in the Editor Name box. Type the file extension that you want to be associated with your editor in the File Extension box. Your editor is available for files with this extension. The file extension is registered for Visual Studio only, not for Windows. Type the default file name for new documents created with your editor in the Default File Name box.

4.Click Finish to create your VSPackage in the folder that you specified.

Available Templates

最佳答案

可扩展性项目模板已重构为项目模板,以使模板更可用。例如,您可以将命令、工具窗口等多个项目添加到单个项目中。

该文档肯定已经过时了。我建议使用 Editor_With_Toolbox 示例,或者 WPFDesigner_XML 示例(来自 VS Extensibility Samples on GitHub )作为您的项目的起点。

关于visual-studio - 如何为 VS2015 创建自定义编辑器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35107927/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com