-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "C/C++ editor (LSP)" documentation content
- Loading branch information
Showing
14 changed files
with
179 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
44 changes: 44 additions & 0 deletions
44
bundles/org.eclipse.cdt.lsp.doc/src/asciidoc/lsp_clangd_prefs.adoc
This file contains 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,44 @@ | ||
//// | ||
Copyright (c) 2024 John Dallaway and others | ||
This program and the accompanying materials | ||
are made available under the terms of the Eclipse Public License 2.0 | ||
which accompanies this distribution, and is available at | ||
https://www.eclipse.org/legal/epl-2.0/ | ||
|
||
SPDX-License-Identifier: EPL-2.0 | ||
|
||
Contributors: | ||
John Dallaway - initial content (#963) | ||
//// | ||
|
||
// support image rendering and table of contents within GitHub | ||
ifdef::env-github[] | ||
:imagesdir: ../../images | ||
:toc: | ||
:toc-placement!: | ||
endif::[] | ||
|
||
= clangd | ||
|
||
Use the image:command_link.png[] link:javascript:executeCommand('org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.cdt.lsp.clangd.editor.preferencePage)')[clangd] preference page to configure the behaviour of the `clangd` language server: | ||
|
||
image:lsp_clangd_prefs.png[width=550] | ||
|
||
.clangd Preference Options | ||
:!table-caption: | ||
[%autowidth] | ||
[options="header"] | ||
|=== | ||
|Option |Description | ||
|Path |The absolute path of the `clangd` command-line tool. | ||
|Enable clang-tidy diagnostics |Enables the link:https://clang.llvm.org/extra/clang-tidy[_ClangTidy_] {cpp} linter tool. | ||
|Index project code in the background and persist index on disk |Enables building of files in the background to generate a project index. | ||
|Completion |The granularity of code completion suggestions. | ||
|Pretty-print JSON output |Enables the pretty-printing of JSON output. | ||
|Drivers |A comma-separated list of globs for the extraction of system includes. | ||
|Additional |Miscellaneous `clangd` command-line arguments. | ||
|=== | ||
|
||
Related concepts: | ||
|
||
* link:lsp_cpp_editor.html[C/C++ editor (LSP)] |
This file contains 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
38 changes: 38 additions & 0 deletions
38
bundles/org.eclipse.cdt.lsp.doc/src/asciidoc/lsp_cpp_editor_prefs.adoc
This file contains 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,38 @@ | ||
//// | ||
Copyright (c) 2024 John Dallaway and others | ||
This program and the accompanying materials | ||
are made available under the terms of the Eclipse Public License 2.0 | ||
which accompanies this distribution, and is available at | ||
https://www.eclipse.org/legal/epl-2.0/ | ||
|
||
SPDX-License-Identifier: EPL-2.0 | ||
|
||
Contributors: | ||
John Dallaway - initial content (#963) | ||
//// | ||
|
||
// support image rendering and table of contents within GitHub | ||
ifdef::env-github[] | ||
:imagesdir: ../../images | ||
:toc: | ||
:toc-placement!: | ||
endif::[] | ||
|
||
= C/{cpp} editor (LSP) preferences | ||
|
||
Use the image:command_link.png[] link:javascript:executeCommand('org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.cdt.lsp.editor.preferencePage)')[Editor (LSP)] preference page to configure general behaviour of the C/{cpp} editor (LSP): | ||
|
||
image:lsp_editor_prefs.png[width=550] | ||
|
||
.C/{cpp} Editor (LSP) Preference Options | ||
:!table-caption: | ||
[%autowidth] | ||
[options="header"] | ||
|=== | ||
|Option |Description | ||
|Set C/{cpp} Editor (LSP) as default |When opening a C/{cpp} source file, the C/C++ editor (LSP) will be used by default. | ||
|=== | ||
|
||
Related concepts: | ||
|
||
* link:lsp_cpp_editor.html[C/C++ editor (LSP)] |
38 changes: 38 additions & 0 deletions
38
bundles/org.eclipse.cdt.lsp.doc/src/asciidoc/lsp_save_prefs.adoc
This file contains 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,38 @@ | ||
//// | ||
Copyright (c) 2024 John Dallaway and others | ||
This program and the accompanying materials | ||
are made available under the terms of the Eclipse Public License 2.0 | ||
which accompanies this distribution, and is available at | ||
https://www.eclipse.org/legal/epl-2.0/ | ||
|
||
SPDX-License-Identifier: EPL-2.0 | ||
|
||
Contributors: | ||
John Dallaway - initial content (#963) | ||
//// | ||
|
||
// support image rendering and table of contents within GitHub | ||
ifdef::env-github[] | ||
:imagesdir: ../../images | ||
:toc: | ||
:toc-placement!: | ||
endif::[] | ||
|
||
= Save actions | ||
|
||
Use the image:command_link.png[] link:javascript:executeCommand('org.eclipse.ui.window.preferences(preferencePageId=org.eclipse.cdt.lsp.editor.SaveActionsPreferencePage)')[Save Actions] preference page to configure actions performed by the C/{cpp} editor (LSP) while saving a file: | ||
|
||
image:lsp_save_prefs.png[width=550] | ||
|
||
.Save Actions Preference Options | ||
:!table-caption: | ||
[%autowidth] | ||
[options="header"] | ||
|=== | ||
|Option |Description | ||
|Format source code |While saving a file, the editor will format all lines or edited lines only. | ||
|=== | ||
|
||
Related concepts: | ||
|
||
* link:lsp_cpp_editor.html[C/C++ editor (LSP)] |
This file contains 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 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,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?NLS TYPE="org.eclipse.help.toc"?> | ||
<!-- | ||
Copyright (c) 2024 John Dallaway and others | ||
This program and the accompanying materials | ||
are made available under the terms of the Eclipse Public License 2.0 | ||
which accompanies this distribution, and is available at | ||
https://www.eclipse.org/legal/epl-2.0/ | ||
SPDX-License-Identifier: EPL-2.0 | ||
Contributors: | ||
John Dallaway - initial implementation (#963) | ||
--> | ||
<toc link_to="../org.eclipse.cdt.doc.user/topics_Reference.xml#cdt_Preferences_Anchor" label="Editor (LSP) preferences"> | ||
<topic label="Editor (LSP) preferences" href="html/lsp_cpp_editor_prefs.html"> | ||
<topic label="clangd" href="html/lsp_clangd_prefs.html" /> | ||
<topic label="Save Actions" href="html/lsp_save_prefs.html" /> | ||
</topic> | ||
</toc> |