Guest User

NetBeans-2-CLion-Live-Templates

a guest
Jul 7th, 2016
31
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <templateSet group="NetBeans C/C++">
  2.   <template name="bo" value="bool " description="bool" toReformat="true" toShortenFQNames="true">
  3.     <context>
  4.       <option name="cpp" value="true" />
  5.     </context>
  6.   </template>
  7.   <template name="br" value="break" description="break" toReformat="true" toShortenFQNames="true">
  8.     <context>
  9.       <option name="c" value="true" />
  10.       <option name="cpp" value="true" />
  11.     </context>
  12.   </template>
  13.   <template name="ca" value="case " description="case" toReformat="true" toShortenFQNames="true">
  14.     <context>
  15.       <option name="cpp" value="true" />
  16.     </context>
  17.   </template>
  18.   <template name="cl" value="class " description="class" toReformat="true" toShortenFQNames="true">
  19.     <context>
  20.       <option name="cpp" value="true" />
  21.     </context>
  22.   </template>
  23.   <template name="cls" value="class $CLS$ &#10;{&#10;public:&#10;    $CLS$();&#10;    $CLS$(const $CLS$&amp; orig);&#10;    virtual ~$CLS$();&#10;&#10;private:&#10;    $cursor$&#10;};" description="full class declaration" toReformat="true" toShortenFQNames="true">
  24.     <variable name="CLS" expression="classNameComplete()" defaultValue="" alwaysStopAt="true" />
  25.     <variable name="cursor" expression="" defaultValue="" alwaysStopAt="true" />
  26.     <context>
  27.       <option name="cpp" value="true" />
  28.     </context>
  29.   </template>
  30.   <template name="clss" value="#include &quot;$CLS$.h&quot;&#10;&#10;$CLS$::$CLS$()&#10;{&#10;    $cursor$&#10;}&#10;&#10;$CLS$::$CLS$(const $CLS$&amp; orig)&#10;{&#10;}&#10;&#10;$CLS$::~$CLS$()&#10;{&#10;}" description="full class definition" toReformat="true" toShortenFQNames="true">
  31.     <variable name="CLS" expression="classNameComplete()" defaultValue="" alwaysStopAt="true" />
  32.     <variable name="cursor" expression="" defaultValue="" alwaysStopAt="true" />
  33.     <context>
  34.       <option name="cpp" value="true" />
  35.     </context>
  36.   </template>
  37.   <template name="cn" value="continue" description="continue" toReformat="true" toShortenFQNames="true">
  38.     <context>
  39.       <option name="c" value="true" />
  40.       <option name="cpp" value="true" />
  41.     </context>
  42.   </template>
  43.   <template name="co" value="const " description="const" toReformat="true" toShortenFQNames="true">
  44.     <context>
  45.       <option name="cpp" value="true" />
  46.     </context>
  47.   </template>
  48.   <template name="def" value="#define " description="#define" toReformat="true" toShortenFQNames="true">
  49.     <context>
  50.       <option name="c" value="true" />
  51.       <option name="cpp" value="true" />
  52.     </context>
  53.   </template>
  54.   <template name="df" value="default" description="default" toReformat="true" toShortenFQNames="true">
  55.     <context>
  56.       <option name="c" value="true" />
  57.       <option name="cpp" value="true" />
  58.     </context>
  59.   </template>
  60.   <template name="dou" value="double " description="double" toReformat="true" toShortenFQNames="true">
  61.     <context>
  62.       <option name="c" value="true" />
  63.       <option name="cpp" value="true" />
  64.     </context>
  65.   </template>
  66.   <template name="eif" value="#endif" description="#endif" toReformat="true" toShortenFQNames="true">
  67.     <context>
  68.       <option name="c" value="true" />
  69.       <option name="cpp" value="true" />
  70.     </context>
  71.   </template>
  72.   <template name="en" value="enum " description="enum" toReformat="true" toShortenFQNames="true">
  73.     <context>
  74.       <option name="c" value="true" />
  75.       <option name="cpp" value="true" />
  76.     </context>
  77.   </template>
  78.   <template name="fa" value="false" description="false" toReformat="true" toShortenFQNames="true">
  79.     <context>
  80.       <option name="cpp" value="true" />
  81.     </context>
  82.   </template>
  83.   <template name="fl" value="float " description="float" toReformat="true" toShortenFQNames="true">
  84.     <context>
  85.       <option name="c" value="true" />
  86.       <option name="cpp" value="true" />
  87.     </context>
  88.   </template>
  89.   <template name="fore" value="for ($TYPE$ $VARS$ : $CONTAINERS$)&#10;{&#10;    $END$&#10;}" description="for each" toReformat="true" toShortenFQNames="true">
  90.     <variable name="TYPE" expression="rightSideType()" defaultValue="auto" alwaysStopAt="true" />
  91.     <variable name="VARS" expression="suggestVariableName()" defaultValue="" alwaysStopAt="true" />
  92.     <variable name="CONTAINERS" expression="variableForIteration()" defaultValue="" alwaysStopAt="true" />
  93.     <context>
  94.       <option name="cpp" value="true" />
  95.     </context>
  96.   </template>
  97.   <template name="fori" value="for (int $IDX$ = 0; $IDX$ &lt; $SIZE$; ++$IDX$)&#10;{&#10;    $TYPE$ $ELEM$ = $TYPE_CAST$$ARR$[$IDX$];&#10;    $END$&#10;}" description="for with int" toReformat="true" toShortenFQNames="true">
  98.     <variable name="IDX" expression="suggestIndexName()" defaultValue="i" alwaysStopAt="true" />
  99.     <variable name="SIZE" expression="" defaultValue="size" alwaysStopAt="true" />
  100.     <variable name="TYPE" expression="rightSideType()" defaultValue="Object" alwaysStopAt="true" />
  101.     <variable name="ELEM" expression="suggestVariableName()" defaultValue="elem" alwaysStopAt="true" />
  102.     <variable name="TYPE_CAST" expression="" defaultValue="" alwaysStopAt="true" />
  103.     <variable name="ARR" expression="" defaultValue="array" alwaysStopAt="true" />
  104.     <context>
  105.       <option name="c" value="true" />
  106.       <option name="cpp" value="true" />
  107.     </context>
  108.   </template>
  109.   <template name="ifd" value="#ifdef " description="#ifdef" toReformat="true" toShortenFQNames="true">
  110.     <context>
  111.       <option name="c" value="true" />
  112.       <option name="cpp" value="true" />
  113.     </context>
  114.   </template>
  115.   <template name="ife" value="if ($EXP$)&#10;{&#10;    $END$&#10;}&#10;else&#10;{&#10;}" description="if else expression" toReformat="true" toShortenFQNames="true">
  116.     <variable name="EXP" expression="" defaultValue="exp" alwaysStopAt="true" />
  117.     <context>
  118.       <option name="c" value="true" />
  119.       <option name="cpp" value="true" />
  120.     </context>
  121.   </template>
  122.   <template name="iff" value="if ($EXP$)&#10;{&#10;    $END$&#10;}" description="if expression" toReformat="true" toShortenFQNames="true">
  123.     <variable name="EXP" expression="" defaultValue="exp" alwaysStopAt="true" />
  124.     <context>
  125.       <option name="c" value="true" />
  126.       <option name="cpp" value="true" />
  127.     </context>
  128.   </template>
  129.   <template name="ifn" value="#ifndef " description="#ifndef" toReformat="true" toShortenFQNames="true">
  130.     <context>
  131.       <option name="cpp" value="true" />
  132.     </context>
  133.   </template>
  134.   <template name="er" value="#error " description="#error" toReformat="true" toShortenFQNames="true">
  135.     <context>
  136.       <option name="c" value="true" />
  137.       <option name="cpp" value="true" />
  138.     </context>
  139.   </template>
  140.   <template name="inc" value="#include " description="#include" toReformat="true" toShortenFQNames="true">
  141.     <context>
  142.       <option name="c" value="true" />
  143.       <option name="cpp" value="true" />
  144.     </context>
  145.   </template>
  146.   <template name="lo" value="long " description="long" toReformat="true" toShortenFQNames="true">
  147.     <context>
  148.       <option name="c" value="true" />
  149.       <option name="cpp" value="true" />
  150.     </context>
  151.   </template>
  152.   <template name="ns" value="namespace " description="namespace" toReformat="true" toShortenFQNames="true">
  153.     <context>
  154.       <option name="cpp" value="true" />
  155.     </context>
  156.   </template>
  157.   <template name="pe" value="protected " description="protected" toReformat="true" toShortenFQNames="true">
  158.     <context>
  159.       <option name="cpp" value="true" />
  160.     </context>
  161.   </template>
  162.   <template name="pr" value="private " description="private" toReformat="true" toShortenFQNames="true">
  163.     <context>
  164.       <option name="cpp" value="true" />
  165.     </context>
  166.   </template>
  167.   <template name="pra" value="#pragma " description="#pragma" toReformat="true" toShortenFQNames="true">
  168.     <context>
  169.       <option name="c" value="true" />
  170.       <option name="cpp" value="true" />
  171.     </context>
  172.   </template>
  173.   <template name="pu" value="public " description="public" toReformat="true" toShortenFQNames="true">
  174.     <context>
  175.       <option name="cpp" value="true" />
  176.     </context>
  177.   </template>
  178.   <template name="re" value="return " description="return" toReformat="true" toShortenFQNames="true">
  179.     <context>
  180.       <option name="c" value="true" />
  181.       <option name="cpp" value="true" />
  182.     </context>
  183.   </template>
  184.   <template name="sh" value="short " description="short" toReformat="true" toShortenFQNames="true">
  185.     <context>
  186.       <option name="c" value="true" />
  187.       <option name="cpp" value="true" />
  188.     </context>
  189.   </template>
  190.   <template name="st" value="static " description="static" toReformat="true" toShortenFQNames="true">
  191.     <context>
  192.       <option name="c" value="true" />
  193.       <option name="cpp" value="true" />
  194.     </context>
  195.   </template>
  196.   <template name="sw" value="switch (" description="switch (" toReformat="true" toShortenFQNames="true">
  197.     <context>
  198.       <option name="c" value="true" />
  199.       <option name="cpp" value="true" />
  200.     </context>
  201.   </template>
  202.   <template name="tr" value="true" description="true" toReformat="true" toShortenFQNames="true">
  203.     <context>
  204.       <option name="cpp" value="true" />
  205.     </context>
  206.   </template>
  207.   <template name="ty" value="typedef " description="typedef" toReformat="true" toShortenFQNames="true">
  208.     <context>
  209.       <option name="c" value="true" />
  210.       <option name="cpp" value="true" />
  211.     </context>
  212.   </template>
  213.   <template name="uni" value="union " description="union" toReformat="true" toShortenFQNames="true">
  214.     <context>
  215.       <option name="c" value="true" />
  216.       <option name="cpp" value="true" />
  217.     </context>
  218.   </template>
  219.   <template name="uns" value="unsigned " description="unsigned" toReformat="true" toShortenFQNames="true">
  220.     <context>
  221.       <option name="c" value="true" />
  222.       <option name="cpp" value="true" />
  223.     </context>
  224.   </template>
  225.   <template name="voi" value="void " description="void" toReformat="true" toShortenFQNames="true">
  226.     <context>
  227.       <option name="c" value="true" />
  228.       <option name="cpp" value="true" />
  229.     </context>
  230.   </template>
  231.   <template name="wc" value="wchar_t " description="wchar_t" toReformat="true" toShortenFQNames="true">
  232.     <context>
  233.       <option name="cpp" value="true" />
  234.     </context>
  235.   </template>
  236.   <template name="wh" value="while ($EXP$)&#10;{&#10;    $END$&#10;}" description="while" toReformat="true" toShortenFQNames="true">
  237.     <variable name="EXP" expression="" defaultValue="exp" alwaysStopAt="true" />
  238.     <context>
  239.       <option name="c" value="true" />
  240.       <option name="cpp" value="true" />
  241.     </context>
  242.   </template>
  243. </templateSet>
RAW Paste Data