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.
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.