Hi all, love Cursor! But when using it for Flutter it appears the ‘lightbulb’ feature that generally appears in VSCode is not appearing in Cursor, despite all the marketplace addons being present. This is super handy for wrapping and removing widgets in the tree. Anybody have any ideas why it seems Cursor is not showing it? Thanks!
I personally never found a way. I have to click first in the right area the code-actions bulb would normally automatically appear and then do ‘ctrl+.’. Definitely a nuisance. There is another thread where the devs said they would re-enable it but I don’t think it ever happened as that was quite a while ago now.
When I enable the action bulb, it appears but is not clickable. Please fix this issue as it is the most important feature while working with Flutter. This bug has been around for a long time, and no progress has been made to resolve it. Using Ctrl+. repeatedly for such a frequently used feature is frustrating and significantly slows down the coding process. I constantly switch between the Cursor and VS Code, and when I’m not working with AI, I go back to VS Code solely because of this issue.
Unfortunately, the lack of this feature is a deal breaker for me. Shifting to using a keyboard shortcut for quick actions is fine. But that still doesn’t cover the lightbulb → import quick fix actions. Unless someone has a workaround for this lack of functionality? Having to Fix in Chat with AI for every import I need to do isn’t practical.
For now…switching back to VSC until this is fixed. :(. Please help / fix this! Because other than that, Cursor rocks!
Adding to this bug report:
Title: Missing Import Quick Fix/Lightbulb Feature in Cursor IDE
Description:
The Cursor IDE is missing the quick fix/lightbulb feature for imports that is available in VS Code. This makes the development experience significantly more difficult, especially when working with Flutter/Dart projects that require frequent imports.
Current Behavior:
No lightbulb appears when hovering over undefined classes
No quick fix suggestions for missing imports
Users must manually search for and add imports
Expected Behavior:
Lightbulb should appear when hovering over undefined classes
Quick fix suggestions should be available for missing imports
Similar to VS Code’s import suggestion functionality
Impact:
Significantly slows down development workflow
Forces users to switch between Cursor and VS Code for import-related tasks
Reduces the overall efficiency of using Cursor as a primary IDE
This is also breaks the quick action to add type annotations. Please fix this! Otherwise, Cursor is great…but it is almost unusable for Flutter. Thanks
Title: Missing Type Annotations Quick Fix Not Working in Cursor
Description:
The lightbulb menu quick fix for adding type annotations in Dart/Flutter files is not working in Cursor. This was previously working in VSCode and is a critical feature for maintaining type safety in Dart code.
Steps to Reproduce:
Open a Dart/Flutter file in Cursor
Create a situation where a type annotation is missing (e.g., in a List declaration or function parameter)
The lightbulb icon should appear in the left margin indicating a missing type annotation
Click the lightbulb icon or use the keyboard shortcut (Cmd/Ctrl + .)
Expected Behavior:
Lightbulb menu should appear with the “Add type annotation” quick fix
Clicking the fix should automatically add the appropriate type annotation
Keyboard shortcuts should work to access the menu
Actual Behavior:
Lightbulb menu appears, and can be brought up via the refactor menu shortcut, but that menu lacks the Type Annotation quick fix.
Impact:
Forces manual addition of type annotations
Reduces code quality as developers may skip adding types due to the extra effort
Makes the IDE less useful compared to VSCode for Dart development
Environment:
OS: macOS 24.5.0
Cursor Version: [current version]
Project Type: Flutter/Dart
Additional Notes:
This was working correctly in VSCode before switching to Cursor. The type annotation quick fix is particularly important for Dart development as it helps maintain type safety and code quality.