Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ho-cooh/include-info

A VSCode extension for showing infos about your included files
https://github.com/ho-cooh/include-info

c cpp visual-studio-code

Last synced: 7 days ago
JSON representation

A VSCode extension for showing infos about your included files

Awesome Lists containing this project

README

        

![](logo.png)

![](https://vsmarketplacebadge.apphb.com/version/HO-COOH.include-info.svg)
![](https://vsmarketplacebadge.apphb.com/installs-short/HO-COOH.include-info.svg)
![](https://vsmarketplacebadge.apphb.com/rating-short/HO-COOH.include-info.svg)

# include-info
Show info about your `` files!

## Download

[here](https://marketplace.visualstudio.com/items?itemName=HO-COOH.include-info).

## Features
1. Show lines, file size and number of included files of your `#include ` directives.

![](https://raw.githubusercontent.com/HO-COOH/include-info/master/screenshots/1.png)

2. Directly jump to included files when clicked on the info.

![](https://raw.githubusercontent.com/HO-COOH/include-info/master/screenshots/GoToHeader.gif)

## Requirements
A C++ language server, like [Microsoft's official C/C++ extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools) or [clangd](https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.vscode-clangd).

## Extension Settings
This extension contributes the following settings:
- `Include Info.Auto Show Include Info`
- `Include Info.File Size Unit`
- `Include Info.File Size Decimal Digit`
- `Include Info.File Line Number Seperator`

## Known Issues
- Does NOT recursively scan the included files in the included file, because of [this vscode api issue I raised](https://github.com/microsoft/vscode-cpptools/issues/7124) and [this](https://github.com/microsoft/vscode/issues/118085). (Code is already there, will update as soon as it get resolved.)
- Does NOT take conditional macros into account. Need significant effort to solve that, maybe using a real language server. (Contributions are greatly appreciated)

## Plan
- ~~Add something like a tooltip that lists all the included files when clicked and jump to that file~~ √
- Help remove unnecessary include (might need a language server)

## Release Notes
- 1.2.2
Use `onDidChangeConfiguration` instead of checking it every time
- 1.2.1
Fix Auto size bug.
- 1.2.0
Include file lists can now distinguish `` and `"file"`
- 1.1.2
More optimizations
- 1.1.1
Clean up code, optimize performance
- 1.1.0
Add tooltip for listing included files
- 1.0.0
First release!