Open RiccardoGrieco opened 2 years ago
It would be useful to also have suggestion to configure the Python part fyi @Giulero .
This could be a good topic for the proposed SW dev AMI recurring event @RiccardoGrieco .
I missed this! Python side, I usually use some extensions:
python
extension isort
. It sorts the importsautoDocstring - Python docstring generator
. It helps you to write docs for your codejupyter
. Manages jupyter notebooksPylance
. A language server that provides language support like type checkingSourcery
. A pair programmer that reviews your code qualityFor C++ I use:
C++ extension pack
clangd
, if you use clang CMake
, CMake Tools
, cmake-format
Doxygen Documentation Generator
Misc:
Markdown all in one
, markdownlint
, if you need to write some markdown documentsvscode-pdf
, to visualize pfd in vscodeunicode latex
, it inserts unicode characters Dev Containers
, it allows you to use a container as a dev environmentGit graph
, it visualize the repo git graphGitHub Pull Requests and Issues
, I'm not really using it. But someone could like itLatex Workshop
, if you want to write your latex documents in vscodeWSL
if you are a windows user and you also use wslvscode-pets
. This one is by far the most important, check it out!Today we experiences this difficulties with @davidegorbani, and I did not knew where to point him as we indeed do not have a simple doc on how to setup an IDE (for example Visual Studio) for C++ .
In order to setup VS code to navigate dependencies you first need to install the C/C++ Extension Pack
from the extension window accessible from the left sidebar of IDE.
Then you have a user configuration and a workspace one.
The user configuration can be accessed from the command palette (press Ctrl+Shift+P
) and typing "open user setting":
Edit the C_Cpp.default.includePath
(or create it if it doesn't exist):
"C_Cpp.default.includePath": [
"/home/riccardo/Code/robotology-superbuild/build/install/include/**"
],
In the example above, I added the include path of the superbuild. Thanks to this, you can easily navigate through the dependencies in all of your c++ projects.
If you want to use a specific includePath for a project, you can create a workspace (i.e. the folder you open with the IDE) configuration, by creating the .vscode
folder with inside the file c_cpp_properties.json
, which looks like this:
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${default}",
"${workspaceFolder}/src/**",
"/usr/local/include/eigen3",
"<path_to_repos>/robotology-superbuild/build/install/include/**",
],
"defines": [],
"compilerPath": "/usr/bin/clang",
"cStandard": "c17",
"cppStandard": "c++14",
"intelliSenseMode": "linux-clang-x64"
}
],
"version": 4
}
The example above was created by the extension itself from the command palette, using the entry C/C++: Edit configuration
:
You can then edit includePath
field for your needs.
Note that ${default}
means the includePath from the User configuration.
In this example I used the robotology-superbuild install path, but you can add all 3rd party installed libraries the same way.
For more information concerning the workspace configuration for C/C++ extension, refer to https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference
Thanks a lot @RiccardoGrieco !
cc @gabrielenava
cc @mleonori @pietrobalatti I think we were discussing about this last time, I forgot this discussion was open.
In this issue the following will be documented:
robotology-superbuild
and/or from other repositories