VS Code Notify
A simple VS Code extension that allows you to send custom notifications from
keyboard shortcuts.
Features
- Send custom notification messages
- Support for different notification types (info, warning, error)
- Configurable via keybindings with custom arguments
Usage
Command Palette
- Open Command Palette (
Cmd+Shift+P on macOS, Ctrl+Shift+P on Windows/Linux)
- Run "Send Notification"
Custom Keybindings
Add custom keybindings to your keybindings.json :
{
"key": "cmd+shift+n",
"command": "notify.sendNotification",
"args": {
"message": "Your custom message here",
"type": "info"
}
}
Parameters
message (optional): The notification message text. Defaults to "Hello from VS Code Notify!"
type (optional): The notification type. Options are:
"info" - Information message (default)
"warning" - Warning message
"error" - Error message
Examples
// Info notification
{
"key": "cmd+alt+i",
"command": "notify.sendNotification",
"args": {
"message": "Build completed successfully!",
"type": "info"
}
}
// Warning notification
{
"key": "cmd+alt+w",
"command": "notify.sendNotification",
"args": {
"message": "This is a warning message",
"type": "warning"
}
}
// Error notification
{
"key": "cmd+alt+e",
"command": "notify.sendNotification",
"args": {
"message": "Something went wrong!",
"type": "error"
}
}
Installation
From VSIX file
- Download the
.vsix file
- Install via Command Palette: "Extensions: Install from VSIX..."
- Or use CLI:
code --install-extension notify-0.0.1.vsix
Development
- Clone this repository
- Run
npm install
- Press
F5 to launch Extension Development Host
- Test the extension in the new VS Code window
| |