使用代码片段管理器,添加快捷插入代码文件说明
1. 效果

2. header.snippet
新建 header.snippet 文件,存放到某个文件夹
 
 内容,自行更新
- 快捷名称,修改 Header 里面内容
- 注释内容,修改 Code 里面内容
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
	<CodeSnippet Format="1.0.0">
		<Header>
			<Title>header</Title>
			<Shortcut>header</Shortcut>
			<Description>Code snippet for header</Description>
			<Author>Microsoft Corporation</Author>
			<SnippetTypes>
				<SnippetType>Expansion</SnippetType>
				<SnippetType>SurroundsWith</SnippetType>
			</SnippetTypes>
		</Header>
		<Snippet>
			<Declarations>
				<Literal>
					<ID>expression</ID>
					<ToolTip>Expression to evaluate</ToolTip>
					<Default>true</Default>
				</Literal>
			</Declarations>
			<Code Language="cpp"><![CDATA[#pragma once
///****************************************************************************
/// @Author      : yuanmingzhuo                                                        
/// @Date        : 
/// @Description :                                                                                 
///****************************************************************************]]>
			</Code>
		</Snippet>
	</CodeSnippet>
</CodeSnippets>
3. 导入
1)工具-代码片段管理

 2)导入文件
 



















