Improved support for "smart typing" features in Apex

Issue #228 resolved
Scott Wells repo owner created an issue

IC already supports some of IntelliJ IDEA's "smart typing" features such as automatically closing quotes on string literals, parens/brackets/braces, etc., but there are a few places where this doesn't work exactly like it does for Java.

When a left paren is inserted, a right paren shouldn't be inserted unless the immediate next character is white space. In Java, typing a left paren before x + y results in (x + y; in Apex right now it results in ()x + y.

Here's another one from Porter Rickabaugh:

The pipe is the cursor.

Existing Text:

if (bContChange)|update cont;

in intellij java give this scenario if you type '{' it does something like this:

if (bContChange){
    update cont;
    |
}

the plugin currently does this:

if(bContChange){}update cont;

Comments (2)

  1. Log in to comment