ConvertersLesson 38Free preview
Case Converter
This lesson is part of Web Developer Tools · All levels
Summary
Case Converter changes the style of writing of words in an identifier or text, for example from space to camelCase, snake_case, kebab-case, or PascalCase. Conversion usually breaks the text into words based on spaces, bottom lines, or hyphens, and then rearranges it. Each language and project has a different convention, so consistency is more important than choosing a particular style. This tool is useful when adjusting variable names with code style guidelines.
Key points
- CamelCase begins with the lower case, the next word is capital
- PascalCase writes capital at the beginning of each word
- Snake_case using the bottom line, kebab-case using the hyphen
- Conversion breaks down words based on existing separators
- Choose a style that is consistent with language conventions and consistent throughout the project
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.