flutter / flutter/flutter-intellij

intelligent movement of caret to navigate commas

Open
#2,700 2 comments 3 reactions 0 assignees View on GitHub
topic-editing
Dominant language
Java
Stars
2k
Forks
356
Avg merge
1d 11h
Merged PRs (30d)
27

Description

Flutter widget code has lots and lots of commas.

Would it be possible to add shortcuts to the editor that make it easier to move the caret between commas as below:

1. a shortcut key that moves the caret past the nearest comma
This would be very useful when defining properties for widget as often you have to press a few keystrokes to position the caret past a comma (perhaps CTRL+SHIFT+,)

2. a shortcut key that inserts a comma at the end of current line and moves the caret to new line.
This would be useful when defining new widgets as children as often after typing in a widget you need to go to the end of the line, insert the comma and then add then add next child.
Similar to CTRL+ENTER (perhaps CTRL+ENTER+,)

Not sure if this suggestion is related to flutter plugin or IntelliJ itself

## Version info
[✓] Flutter (Channel master, v0.9.6-pre.35, on Linux, locale en_GB.UTF-8)
FLutter plugin 29.1.3

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.