<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="http://teki.one/feed.xml" rel="self" type="application/atom+xml" /><link href="http://teki.one/" rel="alternate" type="text/html" /><updated>2026-02-17T08:42:44+00:00</updated><id>http://teki.one/feed.xml</id><title type="html">teki page</title><subtitle>stuff</subtitle><entry><title type="html">Visual Studio Code C/C++ code completion with YCMD</title><link href="http://teki.one/programming/2017/03/14/vscode-c++-code-completion-with-ycm.html" rel="alternate" type="text/html" title="Visual Studio Code C/C++ code completion with YCMD" /><published>2017-03-14T00:00:00+00:00</published><updated>2017-03-14T00:00:00+00:00</updated><id>http://teki.one/programming/2017/03/14/vscode-c++-code-completion-with-ycm</id><content type="html" xml:base="http://teki.one/programming/2017/03/14/vscode-c++-code-completion-with-ycm.html"><![CDATA[<h2 id="build-ycmd">Build YCMD</h2>
<pre><code>git clone https://github.com/Valloric/ycmd.git
cd ycmd
git submodule update --init --recursive
python build.py --clang-completer
</code></pre>
<h2 id="visual-studio-code-config-sample">Visual Studio Code config sample</h2>
<p>The extension: <a href="">https://marketplace.visualstudio.com/items?itemName=RichardHe.you-complete-me</a></p>
<p>Minimal config:</p>
<pre><code>    &quot;ycmd.path&quot;: &quot;/Users/notsowise/pathto/ycmd&quot;,
</code></pre>
<p>Optional config in case you have multiple python versions:</p>
<pre><code>    &quot;ycmd.python&quot;: &quot;/usr/bin/python&quot;
</code></pre>
<h2 id="generate-completion-database">Generate completion database</h2>
<p>Pass <code>-DCMAKE_EXPORT_COMPILE_COMMANDS=ON</code> to cmake on invocation. You might have to copy the compile_commands.json into the source tree.</p>
<p>Something like this:</p>
<pre><code>mkdir build
cd build
cmake -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ../src
cp compile_commands.json ../src
cd ../src
code .
</code></pre>]]></content><author><name></name></author><category term="programming" /><summary type="html"><![CDATA[Build YCMD]]></summary></entry></feed>