Skip to content

Better readme #10

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

Merged
merged 11 commits into from
Oct 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 9 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# C++ Insights for vscode
# C++ Insights for Visual Studio Code (VSCode)

<!-- ## Introduction -->

Expand All @@ -12,17 +12,17 @@ For example if there is an image subfolder under your extension project workspac

## Features
This extension allows you to view C++ Insights inside of vscode:
<p align="center">
<br />
<p>
<img src="image/show.png" alt="Show C++ insights" />
</p>

or diff the Insights with your original source:
<p align="center">
<br />
<p>
<img src="image/diff.png" alt="Diff source with C++ insights" />
</p>

The extension can utilize a compilation database/compile commands for easy use in existing environments. You can specify a directory containing the compilation database, aka the build directory, with `vscode-cppinsights.buildDirectory`.
If the active file is part of a workspace, and `vscode-cppinsights.buildDirectoryPrioritizeCMake` is set, the `cmake.buildDirecotry` is used to determine the build direcotry.

## Requirements
This extension requires @andreasfertig's C++ Insights.
Expand All @@ -36,38 +36,18 @@ Build or download the latest release and specify the path to the cppinsights bin

## Extension Settings
This extension contributes the following settings:

(You can find descriptions in the settings UI)
* `vscode-cppinsights.path`
* `vscode-cppinsights.buildDirectory`
* `vscode-cppinsights.buildDirectoryPrioritizeCMake`
* `vscode-cppinsights.args`
* `vscode-cppinsights.format`
* `vscode-cppinsights.experimental`

## Contribute
If you want to contribute, have an idea for a feature, or want to report an issue, please visit the [GitHub repository](https://github.com/devtbi/vscode-cppinsights).

## Known Issues
### Formatting (`vscode-cppinsights.format`)
* Enabling the option disables the "preview" property of the output editor
* When using the `insightsDiff` command, the output is not formatted like the original source


<!-- -----------------------------------------------------------------------------------------------------------
## Following extension guidelines

Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.

* [Extension Guidelines](https://code.visualstudio.com/api/references/extension-guidelines)

## Working with Markdown

**Note:** You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:

* Split the editor (`Cmd+\` on macOS or `Ctrl+\` on Windows and Linux)
* Toggle preview (`Shift+CMD+V` on macOS or `Shift+Ctrl+V` on Windows and Linux)
* Press `Ctrl+Space` (Windows, Linux) or `Cmd+Space` (macOS) to see a list of Markdown snippets

### For more information

* [Visual Studio Code's Markdown Support](http://code.visualstudio.com/docs/languages/markdown)
* [Markdown Syntax Reference](https://help.github.com/articles/markdown-basics/)

**Enjoy!** -->