简体   繁体   English

我可以在Visual Studio配置文件中使用代码段吗?

[英]Can I use code snippets in a Visual Studio configuration file?

I'd like to prevent looking up a piece of configuration code every time I create a new application. 我想避免在每次创建新应用程序时查找一段配置代码。 Therefore I thought of using a code snippet, but I can't seem to find out how to use snippets in a configuration file. 因此,我想到了使用代码段,但似乎无法找出如何在配置文件中使用代码段。

Is this even possible? 这有可能吗?

If your configuration file is XML format, you could create code snippets for XML language. 如果您的配置文件是XML格式,则可以为XML语言创建代码段。 You can make it similarly a creating basic code snippet only by specifying the XML language. 您只需指定XML语言,就可以类似地使其创建基本代码段。 For more, see here . 有关更多信息,请参见此处

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM