Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Change shortcut for do-while to 'do' (C++) #52

Merged
merged 2 commits into from
Oct 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Change shortcut for 'namespace declaration' from `ns` to `na` ([#47](https://github.com/josefpihrt/snippetica/pull/47)).
- [C++] Change shortcut for 'cast' from `ct` to `ca` ([#50](https://github.com/josefpihrt/snippetica/pull/50)).
- [C++] Change shortcut for 'inline' from `il` to `i` ([#51](https://github.com/josefpihrt/snippetica/pull/51)).
- [C++] Change shortcut for 'do-while' from `dw` to `do` ([#52](https://github.com/josefpihrt/snippetica/pull/52)).

### Removed

Expand Down
2 changes: 1 addition & 1 deletion src/Snippetica/Snippetica.Cpp/DoWhile.snippet
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<CodeSnippet Format="1.1.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<Header>
<Title>do-while</Title>
<Shortcut>dw</Shortcut>
<Shortcut>do</Shortcut>
<Description>do-while statement</Description>
<Author>Josef Pihrt</Author>
<SnippetTypes>
Expand Down
23 changes: 23 additions & 0 deletions src/Snippetica/Snippetica.Cpp/DoWhile_Obsolete.snippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!--Copyright (c) Josef Pihrt. All rights reserved. Licensed under the Apache License, Version 2.0.-->
<CodeSnippet Format="1.1.0" xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<Header>
<Title>do-while [Obsolete]</Title>
<Shortcut>dw</Shortcut>
<Description>do-while statement [Obsolete]</Description>
<Author>Josef Pihrt</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[/* Shortcut 'dw' is obsolete, use 'do' instead. */$end$]]></Code>
</Snippet>
</CodeSnippet>