Skip to content

Strange conversion when highlighting #33

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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