Code Folding
editor
productivity
navigation
COcodefolding
Description
Smart code folding rules to help organize and navigate large files. Automatically folds code sections for better readability.
json
{
"rules": [
{
"name": "Fold Imports",
"pattern": ".*\\.js$|.*\\.jsx$|.*\\.ts$|.*\\.tsx$",
"commands": [
{
"title": "Fold Imports",
"command": "editor.foldAllImports",
"when": "editorTextFocus"
}
]
}
]
}
About the Author
CO
codefolding
Rule Creator
Related Rules
Auto Import
Automatically imports modules when referenced in your code. This rule detects undefined variables and tries to find matching imports from your project or installed packages.
productivity
imports
typescript
Git Commit Templates
Standardized git commit message templates following conventional commits specification. Helps maintain consistent commit history.
git
workflow
productivity
Format on Save
Automatically format your code when you save a file. Works with various languages and respects your project's formatting settings.
formatting
productivity