Change Text Case in Sublime Text
Master Text Case Conversion in Sublime Text Editor
Text case conversion is a fundamental skill that saves developers significant time when working with code, especially when dealing with naming conventions across different programming languages and frameworks.
Common Text Case Use Cases
Variable Naming
Convert between camelCase, snake_case, and PascalCase for different programming languages. Essential for maintaining consistent code style across projects.
CSS Classes
Transform text for CSS class names and HTML attributes. Quickly convert content text to proper kebab-case formatting for web development.
Database Fields
Format column names and table identifiers according to database conventions. Convert user input to proper database naming standards.
Quick Text Case Conversion Process
Select Text
Highlight the text you want to convert. You can select single words, multiple words, or entire lines depending on your needs.
Access Command Palette
Use Ctrl+Shift+P on Windows/Linux or Cmd+Shift+P on Mac to open the command palette in Sublime Text.
Choose Case Option
Type the desired case conversion command and select from options like uppercase, lowercase, title case, or use keyboard shortcuts for quick access.
Key Takeaways
RELATED ARTICLES
Quickly Write Nested Tags in Sublime Text
Use > (greater-than symbol) to quickly write nested tags. For example, if you type article>h1and hit Tab, Emmet expands article>h1 to <article>...
Quickly Delete a Word in Any Text Editor
Hit Option–Delete (Mac) or Ctrl–Backspace (Windows) to delete the word to the left of the cursor. This is an operating system feature so it should work in any...
Proper Character Encoding with Unicode
To ensure special characters display properly on your website, do one of the following: Add <meta charset="UTF-8"> into the <head> of every HTML page....