Arrow Inserter
Quickly insert Unicode and ASCII arrow symbols into your code with a simple keyboard shortcut or command palette menu.
Overview
Arrow Inserter provides a fast and convenient way to insert arrow symbols (→, ←, ↑, ↓, ⇒, ⇐, ->, =>, etc.) into your documents. No more copying from character maps or memorizing Unicode codes—just press a shortcut and pick your arrow!
Features
- 🎯 Quick Access - Insert arrows with a single keyboard shortcut (
Cmd+Alt+; / Ctrl+Alt+;)
- 🔍 Searchable Menu - QuickPick interface with searchable arrow symbols
- 📝 Multiple Cursors - Works with multiple cursor selections
- 🎨 Unicode & ASCII - Support for both Unicode arrows (→, ←, ↑, ↓) and ASCII arrows (
->, <-, =>)
- ⚙️ Customizable - Add your own custom symbols via settings
- 🎛️ Configurable - Toggle code point display and customize behavior
Quick Start
Method 1: Keyboard Shortcut (Recommended)
- Place your cursor where you want to insert an arrow
- Press:
- Mac:
Cmd+Alt+;
- Windows/Linux:
Ctrl+Alt+;
- Select an arrow from the QuickPick menu
- The arrow is inserted at your cursor position
Method 2: Command Palette
- Open Command Palette:
Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux)
- Type one of these commands:
Arrows: Insert Unicode Arrow - Insert Unicode arrow symbols
Arrows: Insert Unicode Arrow (with spaces) - Insert with surrounding spaces
Arrows: Insert ASCII Arrow - Insert ASCII arrow symbols
- Select an arrow from the menu
Available Symbols
Unicode Arrows
Straight Arrows:
- → (Right), ← (Left), ↑ (Up), ↓ (Down)
- ⇒ (Right double), ⇐ (Left double), ⇔ (Both double), ↔ (Both)
Corner/Outcome Arrows:
- ↵ (Enter/left corner), ↩ (Left hook), ↪ (Right hook)
- ⤵ (Right then down), ⤴ (Right then up), ⤷ (Down then right), ↴ (Right corner down)
Chevrons/Triangles:
- », « (Right/Left angle quotes)
- ›, ‹ (Single right/left angle quotes)
- ▸, ◂ (Small right/left triangles)
- ▼, ▲ (Down/Up triangles)
ASCII Arrows
-> (Right), <- (Left)
=> (Fat right), <= (Fat left)
<-> (Both), <=> (Both fat)
==> (Right triple), <== (Left triple)
Configuration
Add Custom Symbols
You can add your own symbols to the picker by configuring arrows.customSymbols in your settings:
{
"arrows.customSymbols": [
{
"label": "Right fat arrow",
"text": "➡️",
"detail": "U+27A1",
"description": "Custom arrow"
},
{
"label": "Custom symbol",
"text": "⟹",
"detail": "U+27F9",
"description": "Long right arrow"
}
]
}
Show/Hide Code Points
Control whether Unicode code points (e.g., U+2192) are displayed in the picker:
{
"arrows.showCodePoints": true
}
Set to false to hide code points for a cleaner interface.
Examples
Example 1: Inserting a Right Arrow
- Press
Cmd+Alt+; (or Ctrl+Alt+;)
- Type "right" to filter arrows
- Select
→ from the menu
- Result:
→ is inserted at cursor
Example 2: Inserting with Spaces
- Open Command Palette
- Run
Arrows: Insert Unicode Arrow (with spaces)
- Select
→
- Result:
→ is inserted with surrounding spaces
Example 3: Multiple Cursors
- Place multiple cursors (Alt+Click or Cmd+Alt+Click)
- Press
Cmd+Alt+;
- Select an arrow
- Result: The arrow is inserted at all cursor positions
Requirements
- VS Code or Cursor version 1.85.0 or higher
Installation
From VS Code Marketplace
- Open VS Code/Cursor
- Go to Extensions view (
Cmd+Shift+X / Ctrl+Shift+X)
- Search for "Arrow Inserter"
- Click Install
From VSIX File
- Download or build the
.vsix file
- Open VS Code/Cursor
- Go to Extensions view
- Click the
... menu (top right)
- Select "Install from VSIX..."
- Choose the
.vsix file
Development
To build and test the extension locally:
# Install dependencies
npm install
# Build the extension
npm run build
# Watch mode (auto-rebuild on changes)
npm run watch
# Package for distribution
npm run package
To test in development:
- Open this project in VS Code/Cursor
- Press
F5 to launch Extension Development Host
- Test the extension in the new window
Creating a VSIX File
To create a .vsix file for local installation or sharing:
Build the extension (if not already built):
npm run build
Package the extension:
npm run package
This will:
- Automatically run the build process
- Package all necessary files into a
.vsix file
- Create the file in the
output/ directory (e.g., output/vscode-arrow-inserter-0.0.1.vsix)
Install the VSIX file:
- Open VS Code/Cursor
- Go to Extensions view (
Cmd+Shift+X / Ctrl+Shift+X)
- Click the
... menu (top right)
- Select "Install from VSIX..."
- Choose the generated
.vsix file from the output/ directory
The .vsix file can be shared with others or used for local installation without going through the marketplace.
Contributing
Contributions are welcome! Feel free to submit issues or pull requests.
License
MIT License
Enjoy inserting arrows! → ← ↑ ↓