title: Visual Studio display correct sizeof() for target device
body: <p>I am working on a project for Arduino using VS2017 IDE along with Visual Micro. Everything works fine except for annoying errors caused by incorrect <code>sizeof</code> values being <strong>displayed in tooltips</strong>, presumably due to how Intellisense is (mis)configured.</p>
  
  <p>For example, mousing over <code>sizeof(uint16_t)</code> displays a value of 4, which is wrong by definition. Or even more annoying problem, the following line:</p>
  
  <pre><code>//typedefd as 'typedef uint8_t byte;' in Arduino.h
  CASSERT(sizeof(byte) == 1) //IDE is convinced it's == 4, though it's ok for compiler
  </code></pre>
  
  <p>would cause an error appear in the Error List tab (before compilation). The compiler itself does not complain. It is able to determine all <code>sizeof</code>s correctly - after compiling the Error List tab is free of similar errors.</p>
  
  <p>Is there a way how to configure VS to adhere the target device type sizes in tooltips for the project?</p>