OSDN Git Service

Snippets: Put the cursor in a more useful final position
authorYuchen Deng <loaden@gmail.com>
Tue, 13 Sep 2011 13:48:23 +0000 (21:48 +0800)
committerLeandro T. C. Melo <leandro.melo@nokia.com>
Thu, 6 Oct 2011 14:45:56 +0000 (16:45 +0200)
commit625b0ae6ebb4b4280e1a13a5e6f97c84a435ad80
tree1ac1fd5931523d31471aa226bfbd0b5b3c5bc923
parent85cfc50121b60608b80fef454ffb457f8077c4f3
Snippets: Put the cursor in a more useful final position

e.g.
for (int $var$ = 0; $var$ &lt; $total$; ++$var$) {
$$
}

In final, we need put the cursor at the $$ position.
This makes the code easier to write.

Change-Id: Ied1e6f6bc15277dae43d3052bfb2543124afcb82
Merge-request: 2207
Reviewed-on: http://codereview.qt-project.org/6165
Reviewed-by: Leandro T. C. Melo <leandro.melo@nokia.com>
share/qtcreator/snippets/cpp.xml