{"id":5825,"date":"2020-03-24T19:56:34","date_gmt":"2020-03-25T02:56:34","guid":{"rendered":"https:\/\/visualgdb.com\/w\/?p=5825"},"modified":"2020-03-27T18:17:29","modified_gmt":"2020-03-28T01:17:29","slug":"managing-source-cache","status":"publish","type":"post","link":"https:\/\/visualgdb.com\/documentation\/sourcecache\/","title":{"rendered":"Managing source cache"},"content":{"rendered":"<p>When you develop your Linux application with Visual Studio, you can improve the development experience by importing the Linux header files to IntelliSense &#8211; the auto-suggestion system of Visual Studio. This will allow Visual Studio to display function arguments, navigate through system structures and save you a lot of time typing or searching for function names.<\/p>\n<p>VisualGDB will automatically detect the common include directories on the Linux machine, copy them to your Windows computer and tell Visual Studio to look for the function names there.<\/p>\n<p>You can manage the cached directories at any moment by selecting <strong>Tools-&gt;VisualGDB -&gt; Linux Source Cache Manager<\/strong> in Visual Studio. This will open the source cache manager window:<a href=\"https:\/\/visualgdb.com\/w\/wp-content\/uploads\/2020\/03\/hosts.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5826\" src=\"https:\/\/visualgdb.com\/w\/wp-content\/uploads\/2020\/03\/hosts.png\" alt=\"\" width=\"574\" height=\"294\" \/><\/a>The cache is maintained separately for each remote computer your use, so different versions of files won&#8217;t be confused. If you have installed additioanl libraries to the Linux machine, simply select it from the list and click &#8220;Reload&#8221; to fetch all include directories again. Alternatively, you can click &#8220;Edit&#8221; and manage the cached directories individually:<a href=\"https:\/\/visualgdb.com\/w\/wp-content\/uploads\/2020\/03\/folders.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5827\" src=\"https:\/\/visualgdb.com\/w\/wp-content\/uploads\/2020\/03\/folders.png\" alt=\"\" width=\"740\" height=\"254\" \/><\/a><\/p>\n<h2>Per-project settings<\/h2>\n<p>Note that Visual Studio won&#8217;t look into ALL cached directories by default. Instead you can specify the directories to use with IntelliSense for every project configuration. To do this, right-click on the project in Solution Explorer, and select &#8220;VisualGDB Project Properties&#8221;. Then go to the <strong> IntelliSense Directories <\/strong>tab:<a href=\"https:\/\/visualgdb.com\/w\/wp-content\/uploads\/2020\/03\/dirs.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-5828\" src=\"https:\/\/visualgdb.com\/w\/wp-content\/uploads\/2020\/03\/dirs.png\" alt=\"\" width=\"861\" height=\"754\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you develop your Linux application with Visual Studio, you can improve the development experience by importing the Linux header<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[198],"tags":[],"_links":{"self":[{"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/posts\/5825"}],"collection":[{"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/comments?post=5825"}],"version-history":[{"count":1,"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/posts\/5825\/revisions"}],"predecessor-version":[{"id":5830,"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/posts\/5825\/revisions\/5830"}],"wp:attachment":[{"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/media?parent=5825"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/categories?post=5825"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/visualgdb.com\/w\/wp-json\/wp\/v2\/tags?post=5825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}