A lightweight VS Code extension providing useful AutoCAD Lisp code snippets for faster development. Includes header templates, comment blocks, and common function patterns to streamline your AutoCAD Lisp programming workflow.
- Header Templates: Professional function headers with author, version, and description fields
- Comment Blocks: Formatted comment sections for better code organization
- Version Control: Standardized version section templates
- Layer Functions: Complete layer search and create functionality
- Tab Navigation: Easy placeholder navigation using Tab key
- Lightweight: Snippet-based approach for fast performance
| Trigger | Description | Output |
|---|---|---|
lisph |
Function Header Template | Professional header with author, version, date |
lispc |
Comment Block | Formatted comment section |
lispv |
Version Section | Version tracking template |
fun-layersearch&add |
Layer Search & Create Function | Complete layer management function |
- Install the extension from VS Code Marketplace or GitHub
- Open any
.lsp,.lisp, or.fasfile in VS Code - Type a snippet trigger (e.g.,
lisph) - Press Tab to expand the snippet
- Use Tab to navigate between placeholders
- Customize the placeholders as needed
Type lisph and press Tab to get:
;;------------------=={ Function Name }==------------------;;
;; ;;
;; Brief description of what this function does ;;
;; ;;
;;----------------------------------------------------------------------;;
;; Author: Ferdi Jafar - Civil Tech Source ;;
;;----------------------------------------------------------------------;;
;; Version 1.0 - Date ;;
;; ;;
;; Release notes ;;
;;----------------------------------------------------------------------;;Type fun-layersearch&add and press Tab to get a complete layer management function with customizable parameters.
- VS Code: Version 1.108.1 or higher
- AutoCAD: For testing the generated Lisp code (optional)
- File Extensions: Works with
.lsp,.lisp, and.fasfiles
We welcome contributions! This is an open source project hosted on GitHub.
- Fork this repository
- Create a new branch for your feature
- Add your snippets to
snippets/snippets.code-snippets - Test your changes
- Submit a pull request
Edit the snippets/snippets.code-snippets file and add your snippet following this format:
"Your Snippet Name": {
"prefix": "trigger-word",
"body": [
"Line 1 with ${1:placeholder}",
"Line 2 with ${2:another-placeholder}",
"$0"
],
"description": "Description of your snippet"
}This project is licensed under the MIT License - see the LICENSE file for details.
- Report Bugs: GitHub Issues
- Request Features: GitHub Issues
- Documentation: GitHub Repository
Ferdi Jafar - Civil Tech Source
- GitHub: @CivilTechSource
- AutoCAD Lisp community for inspiration
- VS Code extension development community
- All contributors to this project
Happy AutoCAD Lisp coding! 🎉