When editing your C++ code, you can also use all of the refactoring features that Visual Studio supports for C++ e.g. Visual Studio will rely on the folder structure and will monitor changes in the editor and on disk as needed to have C++ IntelliSense updating and assisting you with the latest information from your C++ sources. Find all references, Go to…, Peek definition, Semantic colorization and highlighting, Class View, Call hierarchy, etc.) Visual Studio gives you access to all its capabilities for reading and browsing C++ code that is part of the CMake project (e.g. CMake is invoked with a specific set of switches that are defined as part of a default CMake configuration that VS creates under the name “x86-Debug” – if this configuration is insufficient for CMake to successfully create its cache, you can further configure it: how to configure CMake is explained later in the post. It will also run CMake.exe to collect more information about your CMake project (CMake cache will be generated in the process). ![]() In the background, VS will start indexing the C++ sources in your folder. Visual Studio 2017 takes advantage of both functionalities to provide an end-to-end C++ development experience for CMake projects that includes:Īs soon as you open a folder containing a CMake project, Solution Explorer will display the files in that folder and you can open any one of them in the editor. This is now part of Visual Studio 2017 “Open Folder” C++ capability. The second one, a Visual Studio initiative (“Open Folder”) designed to enable the developer inner-loop (edit-build-debug experience) without the existing VS solution & C++ project system infrastructure, allowing non-MSBuild C++ codebases to be loaded in Visual Studio in a folder-based experience.This started some interesting conversation in the CMake community as well as internally in our team and it was dubbed the missing link between CMake and the IDE. ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |