docs: Fix typos in language configurations (#37740)
Fixes several typos in the docs. I think there are more but I have only read what I actually needed :) Release Notes: - N/A
This commit is contained in:
@@ -8,14 +8,14 @@ C support is available natively in Zed.
|
||||
|
||||
## Clangd: Force detect as C
|
||||
|
||||
Clangd out of the box assumes mixed C++/C projects. If you have a C-only project you may wish to instruct clangd to all files as C using the `-xc` flag. To do this, create a `.clangd` file in the root of your project with the following:
|
||||
Clangd out of the box assumes mixed C++/C projects. If you have a C-only project you may wish to instruct clangd to treat all files as C using the `-xc` flag. To do this, create a `.clangd` file in the root of your project with the following:
|
||||
|
||||
```yaml
|
||||
CompileFlags:
|
||||
Add: [-xc]
|
||||
```
|
||||
|
||||
By default clang and gcc by will recognize `*.C` and `*.H` (uppercase extensions) as C++ and not C and so Zed too follows this convention. If you are working with a C-only project (perhaps one with legacy uppercase pathing like `FILENAME.C`) you can override this behavior by adding this to your settings:
|
||||
By default clang and gcc will recognize `*.C` and `*.H` (uppercase extensions) as C++ and not C and so Zed too follows this convention. If you are working with a C-only project (perhaps one with legacy uppercase pathing like `FILENAME.C`) you can override this behavior by adding this to your settings:
|
||||
|
||||
```json
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user