1. Environmental introduction
Visual Studio IDE version: VS2017
Two, add quick notes
(1). Enter the code snippet configuration directory of VS2017
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\Snippets\2052\Visual C++
(2). Create a new head_title.snippet file
If VS2017 is installed on the C drive, files created in this directory may not be created due to permissions. You can create them in other paths first, and then copy them to this directory.
(3). Write code configuration snippets to the head_title.snippet file
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets >
<CodeSnippet Format="1.0.0">
<Header>
<Title>headTitle</Title>
<Shortcut>headTitle</Shortcut>
</Header>
<Snippet>
<Code Language="cpp"><![CDATA[
/**************************************************
作者: DS小龙哥
环境: win10 QT5.12.6 VS2017 32位 Release
日期:
功能:
**************************************************/
]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
(4). Configure code snippet manager