This website requires JavaScript.
Explore
Help
Register
Sign In
jflack
/
yasnippet-snippets
Watch
1
Star
0
Fork
You've already forked yasnippet-snippets
0
Code
Issues
Pull requests
Releases
Wiki
Activity
35cd14df7a
yasnippet-snippets
/
snippets
/
cc-mode
/
if
7 lines
101 B
Plaintext
Raw
Normal View
History
Unescape
Escape
Improve cc-mode snippet "if" * Use a shorter key. * Give user an opportunity to choose whether to use brace.
2014-11-12 23:31:14 +01:00
# -*- mode: snippet -*-
improve syntax to make parsing easier
2019-03-09 10:42:25 +01:00
# name: if (...) { ... }
Improve cc-mode snippet "if" * Use a shorter key. * Give user an opportunity to choose whether to use brace.
2014-11-12 23:31:14 +01:00
# key: if
add many snippets from default yasnippet distribution
2011-11-19 20:30:32 +01:00
# --
cc-mode/if: escape backslashes Escaping lets the user choose between writing an unbraced `if` by pressing C-d, or continue with a braced `if` by pressing TAB. The current behavior when pressing C-d at this point is that there is an unbalanced right brace remaining.
2020-07-23 03:13:24 +02:00
if (${1:condition}) ${2:\{
add many snippets from default yasnippet distribution
2011-11-19 20:30:32 +01:00
$0
cc-mode/if: escape backslashes Escaping lets the user choose between writing an unbraced `if` by pressing C-d, or continue with a braced `if` by pressing TAB. The current behavior when pressing C-d at this point is that there is an unbalanced right brace remaining.
2020-07-23 03:13:24 +02:00
\}}
Reference in a new issue
Copy permalink