wso2 / ballerina-vscode

To keep Ballerina VSCode plugin related issues, discussions, etc.
Apache License 2.0
42 stars 20 forks source link

Improve spacing upon an enter stroke #124

Open gayalkuruppu opened 3 years ago

gayalkuruppu commented 3 years ago

Description: Upon an enter stroke for below snippet, cursor moves from cursor1 to cursor2. Can we improve it to add a tab or align it with from in the line before for a better user experience?

Steps to reproduce:

type Person record {
    string first;
    string last;
    int yearOfBirth;
};

public function main() {
    Person[] persons = [
        {first: "Melina", last: "Kodel", yearOfBirth: 1994},
            ];

    string[] names = from var {first, last} in persons <cursor1>
    <cursor2>    
}
prabushi commented 3 years ago

Related issue https://github.com/wso2/ballerina-plugin-vscode/issues/19