reset-css
A small Visual Studio Code extension to quickly insert a modern CSS reset into your project files or clipboard. Useful when you want a consistent baseline for new styles or templates.
Features
- Insert a lightweight, modern CSS reset into the active editor with a single command.
- Copy the reset to clipboard for pasting into other tools or templates.
- Optional settings to control which reset variant is used (minimal or extended).
Quick Demo
- Open or create a CSS file in VS Code.
- Run the command "Insert Reset CSS" from the Command Palette (Ctrl+Shift+P).
- The reset stylesheet will be inserted at the cursor position.
You can also run "Copy Reset CSS" to copy the same content to your clipboard.
Installation
- Install the extension from the VS Code Marketplace or load it locally in development mode.
- Reload VS Code if required.
Usage
Commands provided by this extension:
reset-css.insertReset
— Insert the chosen reset stylesheet into the active editor.
reset-css.copyReset
— Copy the chosen reset stylesheet to the clipboard.
Example: Open the Command Palette (Ctrl+Shift+P) and type Insert Reset CSS
.
Settings
This extension contributes the following settings (add to your settings.json):
reset-css.variant
(string) — Which reset to use. Allowed values: minimal
(default), extended
.
reset-css.insertAtTop
(boolean) — If true, insertion is forced at the top of the file; otherwise uses cursor position. Default: false
.
Example settings:
"reset-css.variant": "minimal",
"reset-css.insertAtTop": false
Release Notes
1.0.0
Initial release: insert and copy reset CSS commands with minimal and extended variants.
1.1.0
Added insertAtTop
setting and improved clipboard handling.
Contributing
Contributions are welcome. To get started:
- Fork the repository and create a feature branch.
- Run the extension in the VS Code Extension Development Host.
- Open a pull request with a short description of your change.
Please follow the project's coding conventions and include tests for new functionality where applicable.
License
This project is licensed under the MIT License — see the LICENSE
file for details.
If you have questions or issues, open an issue on the repository or contact the maintainer.
Enjoy!