You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CapitalizedCamelCase and CONST_CASE formats could be supported along camelCase, snake_case and the kebab-case formats. All the formats used should be configurable via the extension's settings.
Acceptance Criteria:
Add package.json["contributes"]["configuration"]["properties"]["togglecase.cases"] array with ["kebabCase", "camelCase", "snakeCase"] defaults; those should all be camelCased for consistent naming in extension's functions namespace
Add support for differentiating casing by languageId, same as togglecase.pattern
Implement reading cases from the configuration - order of cases in their array should define the order of toggling
Create an interface with the correctly defined union for all the cases supported
CapitalizedCamelCase toggling should not happen for no-case strings, such as for example "email" or "id" (it might upcase them by default)
Document the new behavior in the README.md#extension-settings section
wscourge
changed the title
Add optional support for the CapitalizedCamelCase format
Add optional support for the CapitalizedCamelCase and CONST_CASE formats
Jul 6, 2020
The
CapitalizedCamelCase
andCONST_CASE
formats could be supported alongcamelCase
,snake_case
and thekebab-case
formats. All the formats used should be configurable via the extension's settings.Acceptance Criteria:
package.json["contributes"]["configuration"]["properties"]["togglecase.cases"]
array with["kebabCase", "camelCase", "snakeCase"]
defaults; those should all be camelCased for consistent naming in extension's functions namespacelanguageId
, same astogglecase.pattern
"email"
or"id"
(it might upcase them by default)For CapitalizedCamelCase, the easy approach is to use
_.upperFirst(_.camelCase(value))
.The text was updated successfully, but these errors were encountered: