A VS Code extension that enables a laser-pointer mode for presenters, allowing them to highlight code lines and areas by converting the mouse pointer into a laser pointer.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
A Visual Studio Code extension that enables a laser-pointer mode for presenters, allowing them to highlight code lines and areas by converting the mouse pointer into a laser pointer.
Features
Toggle Laser Pointer Mode: Activate/deactivate laser pointer mode with a keyboard shortcut or command
Visual Line Highlighting: As you move your cursor through code, lines are highlighted with a red laser-pointer effect
Status Bar Indicator: See at a glance whether laser pointer mode is active
Smooth Trail Effect: Highlighted lines fade after a moment, creating a natural presentation flow
Customizable Keybinding: Default shortcut is Ctrl+Shift+L (Windows/Linux) or Cmd+Shift+L (Mac)
Usage
Open any code file in VS Code
Press Ctrl+Shift+L (or Cmd+Shift+L on Mac) to toggle laser pointer mode
Alternatively, use the command palette (Ctrl+Shift+P) and search for "Toggle Laser Pointer Mode"
Move your cursor through the code - the current line will be highlighted with a red laser effect
Press the shortcut again to turn off laser pointer mode
Installation
From VSIX (Local Installation)
Download the .vsix file
Open VS Code
Go to Extensions view (Ctrl+Shift+X)
Click on the "..." menu at the top of the Extensions view
Select "Install from VSIX..."
Choose the downloaded .vsix file
From Source
Clone this repository
Run npm install to install dependencies
Press F5 to open a new VS Code window with the extension loaded
Test the extension in the new window
Development
Prerequisites
Node.js (v18 or higher)
Visual Studio Code
TypeScript
Building
npm install
npm run compile
Running Tests
npm run test
Packaging
npm install -g @vscode/vsce
vsce package
This will create a .vsix file that can be installed in VS Code.
Extension Settings
This extension contributes the following commands: