Skip to content

Strange conversion when highlighting #33

@AR-Meistars

Description

@AR-Meistars

In the settings, I specified only two options: “camelCase” and “snake_case.” And here is the result.
It is better to demonstrate than to explain.

Initial object:

export class DataTypeDto {
  order_id: string;
  increment_id: string;
  name: string;
  delivery_date: string;
  customer_id: string;
}

If you select the entire object and press the key combination, you will get the following result

exportclassDataTypeDto{
orderId:string;
incrementId:string;
name:string;
deliveryDate:string;
customerId:string;
}

If you select only the parameters and types, you will get this result.

export class DataTypeDto {
  ORDER_ID:_STRING;
__INCREMENT_ID:_STRING;
__NAME:_STRING;
__DELIVERY_DATE:_STRING;
__CUSTOMER_ID:_STRING;
}

As I can see, in the first option, it removed all spaces, even though I have this option disabled. And in the second option, it also did not work correctly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions