... | ... | @@ -303,9 +303,20 @@ To enable Debugging: |
|
|
4. Modify `"name"`, `"program"`, `"args"`, `"environment"` or any other tag needed for your Debug/Run setup.
|
|
|
4. Now you can start a debugging session by going to menu `Run -> Start Debugging` or by pressing <kbd>F5</kbd> or Run it by pressing `Run -> Run without Debugging` (<kbd>Shift</kbd> + <kbd>F5</kbd>)
|
|
|
|
|
|
# Tools clang-tidy and clang-format
|
|
|
# Extensions for code formatting and linting
|
|
|
|
|
|
## CPP
|
|
|
- clang-tidy is alread included in the CPP extension. See https://devblogs.microsoft.com/cppblog/visual-studio-code-c-december-2021-update-clang-tidy/
|
|
|
|
|
|
## Python:
|
|
|
- Black Formatter: https://marketplace.visualstudio.com/items?itemName=ms-python.black-formatter
|
|
|
- PyLint: https://marketplace.visualstudio.com/items?itemName=ms-python.pylint
|
|
|
|
|
|
Both tools support the [PEP 8 – Style Guide for Python Code](https://peps.python.org/pep-0008/)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_TODO: Maybe in the next version! meanwhile check [this](https://devblogs.microsoft.com/cppblog/visual-studio-code-c-december-2021-update-clang-tidy/)_
|
|
|
|
|
|
# Configuration for Python
|
|
|
|
... | ... | @@ -320,9 +331,18 @@ If VSCode is not detecting `wscript` files as Python, do the following: |
|
|
|
|
|

|
|
|
|
|
|
## Python code formatting and linting
|
|
|
|
|
|
Install the following extensions:
|
|
|
* [Black Formatter](https://marketplace.visualstudio.com/items?itemName=ms-python.black-formatter)
|
|
|
* [PyLint](https://marketplace.visualstudio.com/items?itemName=ms-python.pylint)
|
|
|
|
|
|
For information see:
|
|
|
* [Formatting Python in Visual Studio Code](https://code.visualstudio.com/docs/python/formatting)
|
|
|
|
|
|
# Using Git, some tutorials
|
|
|
|
|
|
* [Introduction from Visual Studio offical documentation](https://code.visualstudio.com/docs/sourcecontrol/overview)
|
|
|
* [Introduction from Visual Studio official documentation](https://code.visualstudio.com/docs/sourcecontrol/overview)
|
|
|
|
|
|
# Appendix
|
|
|
## Opening a project with the Remote SSH extension
|
... | ... | |