You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -115,8 +115,8 @@ You can import an existing project that contains a `compile_commands.json` file,
115
115
The language server (clangd) searches for a `compile_commands.json` file in the source file folder and its parents. Users can define a `.clangd` file in the project root to configure clangd (e.g. add include paths).
116
116
A [.clangd](https://clangd.llvm.org/config#files) is a text file with YAML syntax. A `compile_commands.json` file can be generated by CMake.
117
117
118
-
[!TIP]
119
-
This configuration entry in the `.clangd` file would tell clangd to use the `compile_commands.json` file in the build/default folder:
118
+
> [!TIP]
119
+
> This configuration entry in the `.clangd` file would tell clangd to use the `compile_commands.json` file in the build/default folder:
120
120
121
121
```yaml
122
122
CompileFlags:
@@ -141,11 +141,11 @@ This file may be hidden by default, therefore to see the file uncheck the *.\* r
141
141
By default C/C++ will be opened with the standard CEditor.
142
142
The default can be changed per project or per workspace with the *C/C++ General* -> *Editor (LSP)* -> *Set C/C++ Editor (LSP) as default* checkbox in the project properties or workspace preference page.
143
143
144
-
[!TIP]
145
-
The workspace setting will be used for projects that have not checked the *Enable project specific settings* checkbox in the project properties -> *C/C++ General* -> *Editor (LSP)* page.
144
+
> [!TIP]
145
+
> The workspace setting will be used for projects that have not checked the *Enable project specific settings* checkbox in the project properties -> *C/C++ General* -> *Editor (LSP)* page.
146
146
147
-
[!NOTE]
148
-
Opening a C/C++ file using *Open With* in the context menu of a file won't work for the LSP based editor, because the language server won't be started if *Set C/C++ Editor (LSP) as default* is not enabled!
147
+
> [!IMPORTANT]
148
+
> Opening a C/C++ file using *Open With* in the context menu of a file won't work for the LSP based editor, because the language server won't be started if *Set C/C++ Editor (LSP) as default* is not enabled!
149
149
150
150
With the *C/C++ Editor (LSP)* open, the presentation of the C++ file will follow the LSP4E conventions augmented by the information returned from clangd.
0 commit comments