Auto Import
productivity
imports
typescript
CUcursorteam
Description
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.
json
{
"rules": [
{
"name": "Auto Import",
"pattern": ".*\\.ts$|.*\\.tsx$|.*\\.js$|.*\\.jsx$",
"commands": [
{
"title": "Auto Import",
"command": "editor.action.autoImport",
"when": "editorTextFocus && !editorReadonly"
}
]
}
]
}
About the Author
CU
cursorteam
Rule Creator
Related Rules
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
TypeScript Helpers
Helper functions for TypeScript development. Includes type utilities and common patterns to improve type safety.
typescript
helpers
types