Hi,
No its not recommended. Local libraries are for advanced users and you never need to create the _micro-api folder manually.
1. Delete the physical src folder
2. Remove the src folder from the solution explorer is it still exists.
Libraries are described in the arduino user guide but here are a few tips. The basics are the same in both ide's
1) Manually install a library from a zip using the "vMicro>Add Library>Install Library" which unpack the zip into your "sketch book\libraries folder" normally documents\arduino\libraries. You can also manually unzip your library into the correct location
2) Click the Refresh command on the same install library menu or restart the ide
3) Use the vMicro>Add Library" menu to select the newly installed library. This will add the correct format of #include to the project_name.ino but you can use the same syntax in cpp files.
Adding/using an arduino library in a project does not mean copying code into the local project. Libraries are never included with a path because they are automatically discovered from known areas.
As a simpler alternative to 1) use the "visual micro explorer > library manager" to locate, download and install libraries without messing with zip files.
Please see the Visual Micro document for more info. Here are two articles from the
visulmicro.com documentation index Adding libraries to your sketch:
http://www.visualmicro.com/page/User-Guide.aspx?doc=Add-Libraries.html Managing Libraries with Library Manager:
http://www.visualmicro.com/page/User-Guide.aspx?doc=Library-Manager.html After you add libraries to a sketch the code can be viewed easily using "vMicro>Toggle Hidden Files"
After installing a library use the Examples tab on the Micro Explorer to easily create a new cloned project of any example or create a new project and copy the code in manually like you did. The Examples tab gives both a way to clone or open an example and a way to view just the source code without creating a project
note
Most libraries can be compiled as project code. However Arduino recently started compiling all code found in the \src folder and below. So visual micro will shortly recommend moving the src\_micro-api to some other location. This is why arduino will appear to compile code in the \src folder but it compiles it as project code which isn't right. Another reason to stay away from the \src\_micro-api\ folder.
The vMicro>toggle hidden files creates shortcuts to to code instead of importing locally so is a safe way to see and explore the library sources without causing confusion in the arduino ide.