question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Any way to disable automatic addition of `#include`s?

See original GitHub issue

This extension automatically adds #include directives “where needed”. However, in some cases one may not want this (for example, with forward declarations). Is there a way to disable this feature completely?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kadircetcommented, Aug 9, 2021

You should probably use the communication channels of your editor/plugin instead, as we don’t provide the integration/support for those. I did a little digging you might want to take a look at https://lsp.sublimetext.io/guides/client_configuration/ and command parameter specifically.

1reaction
jhassecommented, Nov 11, 2020

It should already be suppressed if there’s a forward declaration in the current file, so please file a bug if you see that.

Against clangd or here?

What I often run into is writing a forward declaration. So

class FooB<TAB>

adds

#include "FooBar.hpp"

.

Due to the aggressiveness of the insertion, what do you think about making -header-insertion=never the default?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable automatic addition of new files in Visual Studio ...
Is there any way to disable or opt-out of the automatic addition of new files for ASP.NET 5 in Visual Studio 2015? Our...
Read more >
How to Disable Automatic Updates in WordPress
Do you want to disable automatic updates in WordPress? Learn how to stop WordPress from automatically updating itself (and the pros and cons ......
Read more >
How can I disable Teams Meeting being automatically ...
In Outlook, choose File and then Options. Select the Add-ins tab of Outlook Options dialog box. Confirm that Microsoft Teams Meeting Add-in for ......
Read more >
How to disable add-ons for Revit
Solution: Third-Party utility for disabling add-ons. Stantec Add In Manager (Free - Open Source):. Download from Bitbucket here.
Read more >
how do you turn off auto complete adding a private in front ...
Please try changing "Settings | Editor | Code Style | C# | Code Style | Modifiers | Prefer explicit/implicit private modifier for type...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found