I have just installed yasnippet package for emacs and am trying to configure snippets. Everything works fine except one particular snipet.
File: ~/.emacs.d/elpa/yasnippet-20150212.240/snippets/cc-mode/while
# -*- mode: snippet -*-
# name: while
# key: while
# --
while (${1:condition})
{
$0
}
The problem is that when I use the snippet the output is like this:
while(condition)
{
}
I checked if I have the correct file by changing the original while file to this:
# -*- mode: snippet -*-
# name: while
# key: while
# --
while (${1:condition})
{
$0;
}
(semi-colon added) and the output was:
while(condition)
{
;
}
Why my braces have a tab behind them?
Note: Everything else works fine. For loops work fine, switch works fine, classes work fine... Only the while loop has a problem. Any ideas?