VS Code extension to convert a kebab-case css to camel case css or vice-versa.
If you like 👍 give stars ⭐️ in Github and VS Code Marketplace.
- Using keybinding
- Select the CSS text you want convert
- Enter
Shift + Command + V
(mac),Shift + Ctrl + V
(windows/linux)
- Using Command Pallette
- Select the CSS text you want convert
- Open
Command Pallette (Shift + Command + P) / (Shift + Control + P)
in VS-Code and enterCSS Converter
- Select
CSS Converter
from searched result - How's the josh your css is converted.
To turn off autoFormat add configuration in settings.json
"cssConverter.autoFormat": false,
If you want to turn on autoFormat add configuration in settings.json
"cssConvert.autoFormat": true,
(optional)
"javascript.format.insertSpaceBeforeAndAfterBinaryOperators": false,
"typescript.format.insertSpaceBeforeAndAfterBinaryOperators": false,
background-color: #FFF; ===> backgroundColor: "#FFF",
backgroundColor: "#FFF", ===> background-color: #FFF;
-
Convert your html css to jsStyle which support in react style elements.
-
Auto identifies CSS style format.
- Additional space after value # (example: backgroundColor: "#FFF", ===> background-color: # FFF;)
- Updated package dependency to use latest lodash to resolve security issue: https://github.com/Lakkanna/css-converter/security/dependabot/11
-
Conversion to kebab case with quoted style was not working
Issue: #33
-
Updated test command to run test cases
-
Removing
/
from ruleOriginal css:
border-radius: 100%/130% 130% 15px 15px;
Previous conversion result:
borderRadius: "100%130% 130% 15px 15px",
Current/Fixed conversion result:
borderRadius: "100%/130% 130% 15px 15px",
-
Adding
-
to the webkit prefixed stringsIssue
webkit-background-clip: text;
Fixed
-webkit-background-clip: text;
- Previous extension was not installing due to package dependencies
- Removing new line before operating on string values
- The space disappears after converting a negative number #21
- The space disappears after converting complex value #22
- Css styles staring with '-' (-webkit-background-clip: text) should keep capitalization on first character #23
- Previous extension was not installing due to package dependencies
- Removing new line before operating on string values
- The space disappears after converting a negative number #21
- The space disappears after converting complex value #22
- Css styles staring with '-' (-webkit-background-clip: text) should keep capitalization on first character #23
- Removed badges from README.md
- The space disappears after converting a negative number #21
- The space disappears after converting complex value #22
- Css styles staring with '-' (-webkit-background-clip: text) should keep capitalization on first character #23
- updated npm packages and vscode
-
Should not wrap number value with string quote, example
// Current output font-weight: 500; => fontWeight: 500 // Previous output font-weight: 500; => fontWeight: '500'
- updated npm packages
- Removed unwanted libraries
- Project re-structured
- Extension activation
- Configuration for travis-ci
- Tests for build in travis-ci
- Badges in README.md
- Keywords
- CHANGELOG.md
- README.md
-
Key binding
mac -
Shift + Command + V
window/linux -
Shift + Ctrl + V
- Key binding
- Moved demo gif top in Updated README.md
- Updated README.md
- Added configuration for format, default value will be true, to turn off auto format add
cssConverter.autoFormat: false
in settings.json
- Fixed camelCase CSS string with comma separated values issue
- Format should apply only for selected range
- Auto indentaion issue
- Additional double quotes if try to convert kebab-case css to camelCase
- Black background how to use gif in readme
- How to use gif in readme
- Initial release of CSS Converter
- Identifies format of css and converts it to kebab-case or camelCase based on which css format we selected.
Enjoy!