-
Notifications
You must be signed in to change notification settings - Fork 335
[VSC-1561] Add ESP-IDF Profiles #1499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
974cc1c
feat: Add file and documentation
radurentea 28184c4
fix: RST format
radurentea 315f5d3
fix: remove personal settings
radurentea e880208
feat: add clang profile
radurentea 950b455
fix: format of .rst file
radurentea c354b35
fix: .rst format (same link titles)
radurentea f740e51
Remove unnecessary extensions
radurentea 930d6e3
Update docs
radurentea File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| .. _esp-idf-profiles: | ||
|
|
||
| ESP-IDF VS Code Profiles | ||
| ======================== | ||
|
|
||
| :link_to_translation:`zh_CN:[中文]` | ||
|
|
||
| The ESP-IDF extension for VS Code works best with specific companion extensions for full C/C++ language support (like IntelliSense, code navigation, debugging) and CMake integration. To simplify the setup process, we provide official VS Code profiles that bundle recommended extensions and settings. | ||
|
|
||
| What is a VS Code Profile? | ||
| -------------------------- | ||
|
|
||
| A VS Code profile (`.code-profile`) is a collection of extensions, settings, UI state, and keyboard shortcuts. Using an official ESP-IDF profile ensures that you have a curated set of tools optimized for ESP-IDF development without needing to manually install and configure each component. | ||
|
|
||
| Available ESP-IDF Profiles | ||
| -------------------------- | ||
|
|
||
| We offer two primary profiles tailored to different C/C++ language server preferences: | ||
|
|
||
| **1. Default Profile (`ESP-IDF`)** | ||
|
|
||
| * **C/C++ Tooling**: Uses the **Microsoft C/C++ Extension Pack** (`ms-vscode.cpptools-extension-pack`). This includes the `ms-vscode.cpptools` extension, which provides IntelliSense, debugging, and code Browse features widely used in VS Code for C/C++ development. | ||
| * **Included Key Extensions**: | ||
| * `espressif.esp-idf-extension` (ESP-IDF) | ||
| * `ms-vscode.cpptools-extension-pack` (C/C++ Extension Pack) | ||
| * `ms-vscode.cmake-tools` (CMake Tools) | ||
| * **Recommendation**: This profile is recommended for most users and provides a comprehensive C/C++ development experience based on Microsoft's standard tooling. The internal profile name in VS Code is **`ESP-IDF`**. | ||
|
|
||
| **2. Clangd Profile (`ESP-IDF (clangd)`)** | ||
|
|
||
| * **C/C++ Tooling**: Uses **`clangd`** (`llvm-vs-code-extensions.vscode-clangd`) as the C/C++ language server. `clangd` is part of the LLVM project and provides features like code completion, diagnostics, and navigation based on the Clang compiler infrastructure. | ||
| * **Included Key Extensions**: | ||
| * `espressif.esp-idf-extension` (ESP-IDF) | ||
| * `llvm-vs-code-extensions.vscode-clangd` (clangd) | ||
| * `ms-vscode.cmake-tools` (CMake Tools) | ||
radurentea marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| * **Recommendation**: This profile is suitable for users who specifically prefer or require `clangd` for their C/C++ language support, potentially due to project requirements, specific `clangd` features, or personal preference for LLVM-based tooling. The internal profile name in VS Code is **`ESP-IDF (clangd)`**. | ||
|
|
||
| How to Import an ESP-IDF Profile | ||
| -------------------------------- | ||
|
|
||
| 1. Choose the profile that best suits your C/C++ tooling preference and download its `.code-profile` file from one of the following sources: | ||
|
|
||
| * **Default Profile (`ESP-IDF`)**: (Uses Microsoft C/C++ Tools) | ||
| * `Default Profile GitHub Repository <https://github.com/espressif/vscode-esp-idf-extension/blob/master/profiles/esp-idf.code-profile>`_ | ||
| * `Defualt Profile Direct Download Link <https://raw.githubusercontent.com/espressif/vscode-esp-idf-extension/master/profiles/esp-idf.code-profile>`_ | ||
|
|
||
| * **Clangd Profile (`ESP-IDF (clangd)`)**: (Uses clangd) | ||
| * `Clangd Profile GitHub Repository <https://github.com/espressif/vscode-esp-idf-extension/blob/master/profiles/esp-idf-clangd.code-profile>`_ | ||
| * `Clangd Profile Download Link <https://raw.githubusercontent.com/espressif/vscode-esp-idf-extension/master/profiles/esp-idf-clangd.code-profile>`_ | ||
|
|
||
| 2. In VS Code: | ||
| * Navigate to **File** > **Preferences** > **Profiles** > **Import Profile...** | ||
| * Select the downloaded `.code-profile` file (e.g., `esp-idf.code-profile` or `esp-idf-clangd.code-profile`). | ||
| * Review the extensions and settings included in the preview and click **Import Profile**. | ||
|
|
||
| 3. Activate the profile: | ||
| * After importing, VS Code may prompt you to switch to the new profile. | ||
| * Alternatively, go to **File** > **Preferences** > **Profiles** and select the profile you imported (either **`ESP-IDF`** or **`ESP-IDF (clangd)`**). The profile will be active for the current workspace. | ||
|
|
||
| Benefits of Using an ESP-IDF Profile | ||
| ------------------------------------ | ||
|
|
||
| - **Simplified Setup**: Avoids manual installation and configuration of multiple extensions. | ||
| - **Optimized Environment**: Ensures you have a curated set of tools known to work well with the ESP-IDF extension. | ||
| - **Consistency**: Useful for teams to maintain a consistent development environment. | ||
| - **Improved Performance**: Can potentially reduce VS Code resource usage by only enabling the necessary extensions within the profile context. | ||
|
|
||
| Updating the Profile | ||
| -------------------- | ||
|
|
||
| The ESP-IDF profiles may be periodically updated. To get the latest version, download the desired profile again from the links above and re-import it using the same steps. VS Code will allow you to overwrite the existing profile. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"name":"ESP-IDF (clangd)","icon":"settings-view-bar-icon","settings":"{\"settings\":\"{}\"}","extensions":"[{\"identifier\":{\"id\":\"espressif.esp-idf-extension\",\"uuid\":\"2f6509f0-2abc-4e12-91e8-91b6ff24c654\"},\"displayName\":\"ESP-IDF\",\"applicationScoped\":false},{\"identifier\":{\"id\":\"llvm-vs-code-extensions.vscode-clangd\"},\"displayName\":\"clangd\",\"applicationScoped\":false}]","globalState":"{\"storage\":{}}"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"name":"ESP-IDF","icon":"settings-view-bar-icon","settings":"{\"settings\":\"{}\"}","extensions":"[{\"identifier\":{\"id\":\"espressif.esp-idf-extension\",\"uuid\":\"2f6509f0-2abc-4e12-91e8-91b6ff24c654\"},\"displayName\":\"ESP-IDF\",\"applicationScoped\":false},{\"identifier\":{\"id\":\"ms-vscode.cpptools\",\"uuid\":\"690b692e-e8a9-493f-b802-8089d50ac1b2\"},\"displayName\":\"C/C++\",\"applicationScoped\":false}]","globalState":"{\"storage\":{}}"} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.