Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>FoolScriptNew to Visual Studio Code? Get it now.
FoolScript

FoolScript

Clibbits

|
1 install
| (0) | Free
A VS Code extension that adds context-aware hover buttons for your custom snippets in any language
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

FoolScript

FoolScript is a VS Code extension that adds context-aware hover buttons for your custom snippets in any programming language. Unlike traditional code lenses that only work with specific language servers, FoolScript uses hover actions and decorations to work with all file types.

Version 3.0.0 Changes

  • Language Agnostic: Now works with all programming languages, not just TypeScript/JavaScript
  • Hover-based Interface: Replaced CodeLens with hover buttons for better language compatibility
  • Visual Indicators: Added visual decorations (➤) to indicate where snippets are available
  • Improved UX: Hover over the first line to see and activate available snippets

Features

  • Context-aware Snippets: Only shows snippets relevant to your current file based on:
    • File path patterns
    • Filename patterns
    • Dependencies in your project
  • Visual Feedback: Lines with available snippets show a ➤ indicator in the gutter
  • Easy Activation: Hover over the decorated line to see buttons for your snippets
  • Universal Language Support: Works with any programming language or file type

Usage

  1. Create snippets in your .code-snippets files with conditions:

    {
      "My Custom Snippet": {
        "prefix": "mycustom",
        "body": [
          "// Your snippet content here"
        ],
        "description": "My custom snippet",
        "conditions": {
          "pathContains": "src",
          "filenameContains": "component",
          "dependencyRequired": "react"
        }
      }
    }
    
  2. Look for the ➤ indicator at the beginning of files where snippets are available

  3. Hover over the line to see available snippets

  4. Click a button to insert the snippet

Commands

  • FoolScript: Configure FoolScript - Creates a template foolscript.code-snippets file in your workspace
  • FoolScript: Refresh Snippets - Manually refresh snippet detection
  • FoolScript: Create Snippet With Conditions - Helper to create conditional snippets

Requirements

Visual Studio Code 1.60.0 or higher

Extension Settings

This extension works out of the box without requiring any configuration.

Known Issues

Please report issues on the GitHub repository.

Release Notes

3.0.0

  • Complete rewrite to use hover buttons instead of CodeLens for universal language support
  • Added visual indicators to show where snippets are available
  • Improved performance with throttled updates

2.1.0

  • Initial release with CodeLens support (limited to TypeScript/JavaScript)
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft