https://github.com/diodeiot/dutils
Utility commands extension for vs-code
https://github.com/diodeiot/dutils
c cpp guard header include source utils
Last synced: 25 days ago
JSON representation
Utility commands extension for vs-code
- Host: GitHub
- URL: https://github.com/diodeiot/dutils
- Owner: diodeiot
- License: other
- Created: 2024-02-09T01:15:19.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-29T17:06:41.000Z (almost 2 years ago)
- Last Synced: 2024-04-29T02:45:27.420Z (almost 2 years ago)
- Topics: c, cpp, guard, header, include, source, utils
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=diodeiot.dutils
- Size: 175 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# dutils
```dutils``` is a vs-code extension that includes various utility commands.
## Installation
Open VS Code and press F1 or Ctrl + Shift + P *or* Cmd + Shift + P to open command palette, select **Install Extension** and type `dutils`.
Or launch VS Code Quick Open (Ctrl + P *or* Cmd + P ), paste the following command, and press enter.
```bash
ext install dutils
```
You can also install directly from the Marketplace within Visual Studio Code, searching for `dutils`.
## Commands
This extension provides several commands in the Command Palette (F1 or Ctrl + Shift + P *or* Cmd + Shift + P) for working with any files.
- **dutils: Add include guard**: Adds include guard to the active file. If selection is empty, entire file content will be enclosed by the generated include guard. If selection is not empty, entire file content will be replaced by the include guard and selection.
- **dutils: Create C source & header files**: Creates C source and header files. If any file is active, these files will be created under that file's directory. Otherwise, directory will be workspace root.
- **dutils: Create C++ source & header files**: Creates C++ source and header files. If any file is active, these files will be created under that file's directory. Otherwise, directory will be workspace root.
- **dutils: Convert hex string to comma seperated bytes**: Converts hex string to comma seperated bytes.
- **dutils: Convert hex string to C/C++ array**: Converts hex string to C/C++ bytes array.
- **dutils: Normalize hex string**: Normalizes hex string.
- **dutils: Normalize hex string with reversed order**: Normalizes hex string with reserve order.
## Triggered Actions
- Include guard will be inserted when empty header file is created.
## Options
| Option | Description | Default |
| ---------------------------------------------- | ------------------------------------------------------------- | ------- |
| `dutils.include-guard-on-header-file-creation` | Controls auto inserting include guard on header file creation | true |
## Release Notes
### Version 1.6.0
- Default case sensitivity changed to "lower" case.
## Development
Maintainer Kadir Sevil <>
Publisher Diode IoT Inc. <>
## Contribution
Contributions to the repository are welcome.
---