Add, remove, and clear rulers at the current cursor using the command palette.
Add a ruler
Put your cursor at the column where you want a ruler and run "Add Ruler" from the command palette.
Command Palette → Khan: Add Ruler
Remove a ruler
Put your cursor at the ruler you want to remove and run "Remove Ruler" from the command palette.
Command Palette → Khan: Remove Ruler
Clear rulers
Run "Clear Rulers" from the command palette.
Command Palette → Khan: Clear Rulers
Method 1: Using Package Control
- Open Sublime Text.
- Access the Command Palette by pressing
Ctrl+Shift+P(Windows/Linux) orCmd+Shift+P(macOS). - Type "Package Control: Install Package" and press
Enter. - In the input field, type "Khan" and select it from the list of available packages.
Method 2: Manual Installation
- Visit the Khan GitHub repository.
- Click on the "Code" button and choose "Download ZIP."
- Unzip the downloaded file.
- In Sublime Text, navigate to
Preferences -> Browse Packages...to access the Packages folder. - Copy the "Khan" folder from the unzipped archive and paste it into the Packages folder.
Method 3: Manual Git Repository Installation
-
Open a terminal or command prompt.
-
Go to the Sublime Text Packages directory based on your operating system:
- Windows:
%APPDATA%\Sublime Text\Packages - macOS:
~/Library/Application Support/Sublime Text/Packages - Linux:
~/.config/sublime-text/Packages
- Windows:
-
Clone the Khan plugin repository directly into the Packages directory using Git:
git clone https://github.com/gerardroche/sublime-khan.git Khan
| Command | Description |
|---|---|
| Khan: Add Ruler | Add a ruler at the current column |
| Khan: Clear Rulers | Clear all rulers |
| Khan: Remote Ruler | Remove the ruler at the current column |
Released under the GPL-3.0-or-later License.
See CHANGELOG.md.