Skip to content

Commit

Permalink
Add warning block about IntelliSense to Visual Studio documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
valeros committed Mar 1, 2016
1 parent 72cb2f1 commit c9505b3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
Binary file modified docs/_static/ide-vs-platformio-newproject-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_static/ide-vs-platformio-newproject-8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/ide-vs-platformio-newproject-9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 16 additions & 4 deletions docs/ide/visualstudio.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,14 @@ First program in Visual Studio

Simple "Blink" project will consist from two files:

1. Main "C" source file named ``main.c`` must be located in the ``src`` directory.
Let's create new file named ``main.c`` using ``Menu: File > New File`` or shortcut ``Ctrl+N``:
1. Main "C++" source file named ``main.cpp`` must be located in the ``src`` directory.
Let's create new file named ``main.cpp`` using ``Menu: File > New File`` or shortcut ``Ctrl+N``:

.. image:: ../_static/ide-vs-platformio-newproject-6.png

Copy the source code which is described below to file ``main.c``.
Copy the source code which is described below to file ``main.cpp``.

.. code-block:: c
.. code-block:: cpp
#include "Arduino.h"
#define WLED 13 // Most Arduino boards already have an LED attached to pin 13 on the board itself
Expand Down Expand Up @@ -150,6 +150,18 @@ Screenshot
.. image:: ../_static/ide-vs-platformio-newproject-8.png
:target: http://docs.platformio.org/en/latest/_static/ide-vs-platformio-newproject-8.png


.. warning::
When the IntelliSense parser finds a GCC-specific definition,
it defines it as an error but it will not create any compilation problems.
To resolve this problem provide an IntelliSense-friendly definition of problematic
GCC constructs and make sure that the GCC will ignore such definitions or disable IntelliSense
error reporting at all.
See details in `issue #543 <https://github.com/platformio/platformio/issues/543>`_

.. image:: ../_static/ide-vs-platformio-newproject-9.png
:target: http://docs.platformio.org/en/latest/_static/ide-vs-platformio-newproject-9.png

Examples
--------

Expand Down

0 comments on commit c9505b3

Please sign in to comment.