Skip to content
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

How not to underline include files? #219

Closed
playgithub opened this issue Aug 14, 2021 · 4 comments
Closed

How not to underline include files? #219

playgithub opened this issue Aug 14, 2021 · 4 comments

Comments

@playgithub
Copy link

playgithub commented Aug 14, 2021

Screenshot

Screenshot_20210814_130758

Description

When vscode-clangd disabled, no underlines for the included files.
When vscode-clangd enabled, how not to show the underlines?

@HighCommander4
Copy link
Contributor

There is some discussion of this at clangd/clangd#630.

There is no current option to disable the include underlines specifically, but there is mention of the editor.links option which will also disable underlines of URLs in comments, and a proposed patch (which hasn't been merged) to add an option specific to includes.

@playgithub
Copy link
Author

editor.links

It's fine, thanks very much.

@playgithub
Copy link
Author

playgithub commented Aug 14, 2021

@HighCommander4
It works with .vscode/settings.json as below

{
    "clangd.arguments": [
        "--compile-commands-dir=${workspaceFolder}/out"
    ],
    "editor.links": false,
    ...
}

What confuse me is that editor.links here is not like an option of vscode-clangd but a global option for the workspace.

@i-ky
Copy link

i-ky commented Aug 14, 2021

What confuse me is that editor.links here is not like an option of vscode-clangd but a global option for the workspace.

Yes, it is an option for the whole workspace, but you can limit it to specific language(s):

"[cpp]": {
    "editor.links": false
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants