<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>How to browse SDK and Zyphyr code in VSCode and nRFconnect SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86693/how-to-browse-sdk-and-zyphyr-code-in-vscode-and-nrfconnect-sdk</link><description>SO I&amp;#39;ve got nRFconnect SDK 1.9.1 running on VSCode on my MAC (attempting to segregate from my Win dev system for now). Wanting to explore it a bit more to see what problems I&amp;#39;ve got to deal with in it. 
 Created a project from the DM example (want to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Apr 2022 14:12:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86693/how-to-browse-sdk-and-zyphyr-code-in-vscode-and-nrfconnect-sdk" /><item><title>RE: How to browse SDK and Zyphyr code in VSCode and nRFconnect SDK</title><link>https://devzone.nordicsemi.com/thread/362397?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 14:12:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a18963e-67ec-44ca-8aee-6d2d38e53290</guid><dc:creator>Randy Lee</dc:creator><description>[quote userid="81181" url="~/f/nordic-q-a/86693/how-to-browse-sdk-and-zyphyr-code-in-vscode-and-nrfconnect-sdk/362380#362380"] If you want, you can add the whole SDK to your VS Code workspace by opening the command pallete with Ctrl+Shift+P, and choose the command &amp;quot;nRF Connect: Add nRF Connect SDK To Workspace&amp;quot;[/quote]
&lt;p&gt;Oh that actually helps a lot for future dev... Our code base tends to have very long life (decades) and relying on the tool sets is rarely a good idea.&amp;nbsp; This solves that issue too.&lt;/p&gt;
&lt;p&gt;thanx&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to browse SDK and Zyphyr code in VSCode and nRFconnect SDK</title><link>https://devzone.nordicsemi.com/thread/362380?ContentTypeID=1</link><pubDate>Thu, 07 Apr 2022 13:48:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0287ec5-847d-479e-89a5-3251f568009c</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;VS Code is a generic text editor, and by itself doesn&amp;#39;t have any knowledge of how our SDK works. Our nRF Connect extension gives you the tools for managing an NCS project, but we rely on Microsoft&amp;#39;s C/C++ extension for code borwsing, code completion, etc. Which means that for the C/C++ extension to know how to &amp;quot;goto definition&amp;quot;, we need to tell it where to look for the definitions.&lt;/p&gt;
&lt;p&gt;The smart way of doing this, is to provide a file to the C/C++ extension that includes the commands we use to compile the project. The C/C++ extension will then use those compile commands to learn where it should search. This file is generated by our extension when you create a &amp;quot;build configuration&amp;quot;. So before you do your first build, VS Code and he C/C++ extension doesn&amp;#39;t really know how to &amp;quot;goto definition&amp;quot;.&lt;/p&gt;
&lt;p&gt;If the compile commands file isn&amp;#39;t available, VS Code and the C/C++ extension will fall back to searching through your open files/folders for any mention of what you are trying to find the definition for. This sometimes works, but it can also just give you a list of all the places the function is mentioned. If you want, you can add the whole SDK to your VS Code workspace by opening the command pallete with Ctrl+Shift+P, and choose the command &amp;quot;nRF Connect: Add nRF Connect SDK To Workspace&amp;quot;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to browse SDK and Zyphyr code in VSCode and nRFconnect SDK</title><link>https://devzone.nordicsemi.com/thread/362175?ContentTypeID=1</link><pubDate>Wed, 06 Apr 2022 19:07:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6dfcd92-872d-4abe-949e-bb56fa930dcc</guid><dc:creator>Randy Lee</dc:creator><description>&lt;p&gt;Sorry... Apparently VSCode isn&amp;#39;t smart enough to figure it out before you do some sort of build.... Once I told it what board to use (why that would matter is beyond me), it got me into OS code and that sort of thing....&amp;nbsp; Also corrected all kinds of flagged errors that shouldn&amp;#39; t exist.&lt;/p&gt;
&lt;p&gt;Gotta love MS....&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>