A comprehensive TypeScript outline extension for VS Code that enhances your development workflow with LSP-based analysis, customizable icons (emoji + FontAwesome), intelligent font detection, and smart sorting.
- Language Server Protocol Integration - Uses VS Code's built-in TypeScript language server for accurate symbol detection
- AST-Based Parsing - Leverages Abstract Syntax Tree data for precise analysis
- Perfect Block Selection - LSP-powered selection handles complex constructors, object type parameters, and nested structures
- Smart Symbol Matching - Intelligent range detection for reliable code navigation
- Intelligent Fallback - Automatically switches to text-based parsing when LSP is unavailable
- Real-time Updates - Seamlessly integrates with TypeScript compiler's semantic analysis
- 🔤 Emoji Icons - Universal emoji support (default)
- ⭐ FontAwesome Icons - Professional icon library (requires FontAwesome installed)
- ❌ No Icons - Clean, minimal interface
- Intelligent Font Detection - Automatically detects system fonts on Windows, macOS, and Linux
- Font Family Picker - Interactive font selection with live preview
- Font Size Control - 8-30px range for optimal readability
- Line Height Adjustment - Fine-tune spacing (0.8-3.0x)
- Popular Programming Fonts - Includes Fira Code, JetBrains Mono, Consolas, and more
- LSP-Based Analysis - Accurate TypeScript symbol detection
- Auto-sync Navigation - Cursor movement highlights outline elements
- Flexible Sorting - Position, Name, or Category-based sorting
- Real-time Updates - Seamless integration with TypeScript compiler
- Language Server Protocol (LSP): Uses VS Code's TypeScript Language Server for accurate symbol detection
- AST-Based Parsing: Leverages Abstract Syntax Tree data instead of regex parsing for better accuracy
- Intelligent Fallback: Automatically falls back to text-based parsing if LSP is unavailable
- Real-time Updates: Seamlessly integrates with TypeScript compiler's semantic analysis
- Precise Visibility: Accurately detects public, private, and protected modifiers from TypeScript AST
- Advanced Getter/Setter Recognition: Identifies TypeScript getter/setter patterns both from LSP and source analysis
- Static/Async/Abstract Detection: Comprehensive modifier detection through language server integration
- Constructor Special Handling: Proper TypeScript constructor visibility analysis
- Cross-Platform Font Detection: Automatically discovers system fonts on Windows, macOS, and Linux
- Categorized Font Selection: Programming fonts, system fonts, serif fonts, and display fonts
- Interactive Font Picker: Command palette integration with live preview
- Fallback Font Chains: Robust font family fallbacks for optimal cross-platform compatibility
- Auto-sync: Editor cursor movement automatically highlights the corresponding element in outline
- One-way sync: Click outline items to navigate to code without interfering with auto-sync
- Center positioning: Elements are positioned optimally in the outline view for better visibility
3 flexible sorting modes accessible via the three-dot menu in outline header:
- 📍 Sort By: Position (default) - Elements ordered by their appearance in source code
- 🔤 Sort By: Name - Alphabetical sorting for easy navigation
- 📂 Sort By: Category - Logical grouping: Classes → Interfaces → Constructors → Properties → Getters → Setters → Methods → Functions
Quick access: Click the ⋮ (three dots) button in the outline header to switch between sorting modes instantly.
15 customizable emoji categories for complete visual control:
Type-based icons:
- 🏗️ Constructors
- 📝 Properties
- ⚙️ Methods
- 🔧 Functions
- 📤 Getters
- 📥 Setters
- 📦 Classes
- 📋 Interfaces
Visibility-based icons:
- 🌐 Public methods/properties
- 🔒 Private methods/properties
- 🛡️ Protected methods/properties
Modifier-based icons:
- 📌 Static members
- 📖 Readonly properties
- 🎭 Abstract methods
- ⚡ Async methods
Combines multiple emojis for complex elements:
🌐📌⚡ createFromServerAsync- public + static + async method📝🔒📖 uuid- private + readonly property⚙️🛡️⚡ setupAsync- protected + async method🏗️🌐 constructor- public constructor📤🔒 secretValue- private getter
Choose your preferred icon style:
{
"tsOutlineEnhancer.iconType": "emoji" // "emoji", "fontawesome", "none"
}Customize the outline view appearance:
{
"tsOutlineEnhancer.fontFamily": "Fira Code, JetBrains Mono, Consolas, monospace",
"tsOutlineEnhancer.fontSize": 14, // 8-30 px
"tsOutlineEnhancer.lineHeight": 1.3 // 0.8-3.0x
}Simple object-based emoji configuration like editor.quickSuggestions:
{
"tsOutlineEnhancer.emojiSettings": {
"public": "🌐",
"private": "🔒",
"protected": "🛡️",
"static": "📌",
"readonly": "📖",
"abstract": "🎭",
"async": "⚡",
"constructor": "🏗️",
"property": "📝",
"method": "⚙️",
"function": "🔧",
"getter": "📤",
"setter": "📥",
"class": "📦",
"interface": "📋"
}
}Professional icons using FontAwesome classes:
{
"tsOutlineEnhancer.fontAwesomeSettings": {
"public": "fas fa-globe",
"private": "fas fa-lock",
"protected": "fas fa-shield-alt",
"static": "fas fa-thumbtack",
"readonly": "fas fa-book-open",
"abstract": "fas fa-theater-masks",
"async": "fas fa-bolt",
"constructor": "fas fa-hammer",
"property": "fas fa-tag",
"method": "fas fa-cog",
"function": "fas fa-wrench",
"getter": "fas fa-download",
"setter": "fas fa-upload",
"class": "fas fa-cube",
"interface": "fas fa-clipboard-list"
}
}}
**Quick setup:**
1. Open Command Palette (`Ctrl+Shift+P`)
2. Run `TS Outliner: Open Emoji Settings`
3. VS Code will open settings focused on `emojiSettings`
**Theme examples:**
```json
// Color-coded theme
"tsOutlineEnhancer.emojiSettings": {
"public": "🟢", "private": "🔴", "protected": "�",
"static": "🟦", "readonly": "🟪", "method": "⚙️"
}
// Minimalist theme
"tsOutlineEnhancer.emojiSettings": {
"public": "●", "private": "○", "protected": "◐",
"static": "■", "method": "▶", "class": "▦"
}| Setting | Default | Description |
|---|---|---|
tsOutlineEnhancer.showIconsInLabel |
true |
Show emoji icons in labels |
tsOutlineEnhancer.showVisibilityInLabel |
false |
Show visibility text in brackets |
tsOutlineEnhancer.autoSelectCurrentElement |
false |
Smart navigation: Auto-highlight current element when cursor moves |
tsOutlineEnhancer.sortMode |
"position" |
Default sorting: Position, Name, or Category |
tsOutlineEnhancer.emojiSettings |
{ ... } (object) |
Emoji configuration: Object with emoji properties for all elements |
- Open VS Code
- Press
Ctrl+Shift+X(orCmd+Shift+Xon Mac) to open Extensions - Search for "TS OUTLINER"
- Click Install
-
Open any TypeScript (.ts) or TypeScript React (.tsx) file
-
The "TS OUTLINER" panel will appear in the Explorer sidebar
-
Enable smart navigation: Add to your settings.json:
{ "tsOutlineEnhancer.autoSelectCurrentElement": true }
📦 TestClass
├── 📝🌐 name (public property)
├── 📝🔒 _id (private property)
├── 📝🛡️ level (protected property)
├── 📝🌐📌📖 count (public static readonly)
├── 🏗️🌐 constructor (public constructor)
├── ⚙️🌐 getName (public method)
├── ⚙️🔒 validate (private method)
├── ⚙️🌐⚡ saveAsync (public async method)
├── ⚙️🌐📌⚡ createFromServerAsync (public static async)
└── 📤🔒 secretValue (private getter)
- Click in editor → Outline element highlights automatically
- Click outline item → Navigate to code without triggering re-highlight
- Perfect sync → Always know where you are in complex files
Quick access to settings via Command Palette (Ctrl+Shift+P):
- TS Outliner: Select Font Family - Interactive font picker with system font detection
- TS Outliner: Open Icon Settings - Choose icon type (emoji/fontawesome/none)
- TS Outliner: Open Font Settings - Configure font family, size, line height
- TS Outliner: Open Emoji Settings - Customize emoji icons
- TS Outliner: Open Icon Appearance Settings - Icon display preferences
- TS Outliner: Refresh - Manually refresh the outline view
{
"tsOutlineEnhancer.iconType": "fontawesome",
"tsOutlineEnhancer.fontFamily": "Fira Code, JetBrains Mono, monospace",
"tsOutlineEnhancer.fontSize": 14,
"tsOutlineEnhancer.lineHeight": 1.3,
"tsOutlineEnhancer.showIconsInLabel": true
}{
"tsOutlineEnhancer.iconType": "none",
"tsOutlineEnhancer.fontFamily": "Consolas, monospace",
"tsOutlineEnhancer.fontSize": 12,
"tsOutlineEnhancer.lineHeight": 1.2
}{
"tsOutlineEnhancer.iconType": "emoji",
"tsOutlineEnhancer.emojiSettings": {
"public": "🟢",
"private": "🔴",
"protected": "🟡",
"static": "🟦",
"readonly": "🟪"
}
}Use the Command Palette:
- Open
Ctrl+Shift+P - Type
TS Outliner: Select Font Family - Choose from categorized fonts:
- Programming fonts (with ligatures)
- System fonts (platform optimized)
- Serif fonts (for documentation)
- Display fonts (for headers)
git clone https://github.com/ondery/outliner.git
cd outliner
npm install
npm run compile- Open in VS Code
- Press
F5to launch Extension Development Host - Open a TypeScript file to test
npm run compile # Compile TypeScript
npm run watch # Watch mode for development
npm run package # Create VSIX packageContributions are welcome! Please feel free to submit a Pull Request.
- 🎯 LSP-Based Block Selection - Completely rewrote block selection logic using Language Server Protocol
- ✨ Perfect Constructor Selection - Constructor blocks (including multi-line parameters) now select correctly
- 🔧 Object Type Parameter Support - Functions with inline object type parameters (e.g.,
data: { id: number }) now work perfectly - ⚡ Improved Accuracy - Uses VS Code's DocumentSymbol API for precise range information instead of manual parsing
- 🐛 Fixed Block Selection Issues - Eliminated all edge cases with nested objects, arrow functions, and complex signatures
- 🛡️ Fallback System - Graceful fallback to single-line selection if LSP fails
- 📊 Enhanced Symbol Matching - Smart symbol finding with line tolerance and recursive search
- 🎨 Better User Experience - Reliable selection behavior across all TypeScript constructs
- 🎯 Font Intelligence - Added automatic system font detection for Windows, macOS, and Linux
- ✨ Interactive Font Picker - New command
TS Outliner: Select Font Familywith categorized fonts - 🎨 Enhanced Font Categories - Programming fonts, system fonts, serif fonts, and display fonts
- 🔧 Command Palette Integration - Added new commands for better settings access
- ⚙️ Icon Settings - New icon configuration commands and improved settings structure
- 📝 Package.json Improvements - Better command organization and descriptions
- 🐛 Font Fallback System - Robust font family fallbacks for cross-platform compatibility
- ⚡ Performance - Optimized font detection with proper error handling
- 🚀 Major Architecture Update: Replaced regex-based parsing with Language Server Protocol (LSP) integration
- ✨ Added AST-Based Analysis for precise TypeScript symbol detection
- ✨ Added Intelligent Fallback System - automatically switches to text parsing when LSP unavailable
- ✨ Enhanced Visibility Detection - accurate public/private/protected analysis from TypeScript compiler
- ✨ Improved Getter/Setter Recognition with both LSP and source code analysis
- ✨ Better Modifier Detection (static, async, abstract, readonly) through language server
- ✨ Added Smart Sorting System - 3 sorting modes accessible via three-dot menu (Position, Name, Category)
- 🔧 Added Persistent Sort Preference - remembers your sorting choice in settings
- 🐛 Fixed Constructor Visibility parsing for TypeScript-specific patterns
- ⚡ Performance Improvement: Leverages VS Code's built-in TypeScript analysis
- 🎯 Better Accuracy: Eliminates false positives from regex-based detection
- ✨ Added smart navigation with auto-sync
- ✨ Added 15 fully customizable emoji categories
- ✨ Added center positioning for better UX
- ✨ Added one-way sync to prevent navigation loops
- 🐛 Fixed destructuring parameter parsing
- 🐛 Fixed multi-line method signature support
MIT © 2025 Öndery