<div dir="ltr">Hi,<div><br></div><div>So .txx file should be header file in the VS project? Then that's right.Yes my file also has templated code. But strangely enough if I use Qt Creator then it works well.</div><div>
<br></div><div>Thanks,</div><div>Julio </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/8 Dženan Zukić <span dir="ltr"><<a href="mailto:dzenanz@gmail.com" target="_blank">dzenanz@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Is your .txx file in the list of VS's project files? If not, try adding it. But you should be aware that code completion is of lesser quality in header files than in code files, because compiler is not aware of how a header file will be used if it is included by multiple code files. Templated code also has lower code completion quality.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Wed, Jan 8, 2014 at 8:25 AM, tao sun <span dir="ltr"><<a href="mailto:colddiesun@gmail.com" target="_blank">colddiesun@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<div><br></div><div><br></div><div>I know it seems not a relevant question to ITK. But I appreciate if anyone has the experience to help me out. </div>
<div><br></div><div><p style="clear:both;vertical-align:baseline;line-height:17.804800033569336px;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;margin:0px 0px 1em;border:0px;padding:0px">
I have a simple project with .cxx, .h and .txx files which is generated from Cmake. By changing adding the file extension in the Text Editor Option, now VS2010 can treat it as a .cxx file. However, the codes in .txx file still cannot autocomplete:</p>
<pre style="max-height:600px;width:auto;background-color:rgb(238,238,238);margin-bottom:10px;padding:5px;vertical-align:baseline;line-height:17.804800033569336px;overflow:auto;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;margin-top:0px;word-wrap:normal;border:0px">
<code style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif"> addFilter->Update(); // No hint when I type add, also when call the member
</code></pre><p style="clear:both;vertical-align:baseline;line-height:17.804800033569336px;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;margin:0px 0px 1em;border:0px;padding:0px">
This is OK in .cxx file. Does anyone know what's happening?</p><p style="clear:both;vertical-align:baseline;line-height:17.804800033569336px;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;margin:0px 0px 1em;border:0px;padding:0px">
<br></p><p style="clear:both;vertical-align:baseline;line-height:17.804800033569336px;font-family:Arial,'Liberation Sans','DejaVu Sans',sans-serif;margin:0px 0px 1em;border:0px;padding:0px">
Julio</p></div></div>
<br></div></div>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>