Last active
September 25, 2018 12:45
-
-
Save Eugene-Y/8404e78224f23b936178f2bd98e5a2d1 to your computer and use it in GitHub Desktop.
Visual Studio 17 snippet for C++ Set and Get
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<Title>SetGet</Title> | |
<Keywords>set get</Keywords> | |
<Shortcut>sget</Shortcut> | |
<Author>Eugene Yakshin</Author> | |
<Description>Makes Setter and Getter</Description> | |
</Header> | |
<Snippet> | |
<Declarations> | |
<Literal> | |
<ID>Val</ID> | |
<ToolTip>method name</ToolTip> | |
<Default>val</Default> | |
</Literal> | |
<Object> | |
<ID>type</ID> | |
<ToolTip>data type</ToolTip> | |
<Default>double</Default> | |
</Object> | |
<Literal> | |
<ID>val</ID> | |
<ToolTip>member name</ToolTip> | |
<Default>value</Default> | |
</Literal> | |
<Literal> | |
<ID>argName</ID> | |
<ToolTip>argument name</ToolTip> | |
<Default>v</Default> | |
</Literal> | |
</Declarations> | |
<Code Language="CPP"> | |
<![CDATA[$type$ $Val$() const { return $val$; } | |
void Set$Val$($type$ $argName$) { $val$ = $argName$; }]]> | |
</Code> | |
</Snippet> | |
</CodeSnippet> | |
</CodeSnippets> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
as of Sep 2018 no autocapitalization feature supported like in VS Code