Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA shortcut to convert first letter to uppercase?

for example

String uuid; String name; to String Uuid; String Name;

(This is just an example, the above code may not be the correct convention)

like image 431
Iniyan Selvan Avatar asked Apr 07 '17 23:04

Iniyan Selvan


People also ask

How do convert selected text to upper and lower case in IntelliJ?

How do convert selected text to upper and lower case in IntelliJ IDEA with GUI command palette or shortcut commands in Windows, Linux, and macOS. This post shows two examples to convert the text to upper case and lower case in an IntelliJ IDEA. The first way is using GUI and the second way uses the shortcut command in Windows and macOS.

How to learn shortcuts in IntelliJ IDEA?

IntelliJ IDEA provides several possibilities to learn shortcuts: Find Action is the most important command that enables you to search for commands and settings across all menus and tools. Press Ctrl+Shift+A and start typing to get a list of suggested actions.

What is the shortcut to find action in IntelliJ?

If we remember just one IntelliJ IDEA shortcut, then it must be Help – Find Action, which is Ctrl + Shift + A in Windows and Shift + Cmd + A in macOS. This shortcut opens a search window with all menu items and other IDE actions, whether they have a keyboard shortcut or not.

How to convert upper case to lower case using window?

It opens the Find Actions WIndow and types Toggle Case in the search box and selects it as given below. Toggle Case: Convert existing upper case text to lower case, and if the string is lower case, It is converted to upper case. Another way using Short cut to convert upper and lower case.


2 Answers

You can try the String Manipulation third-party plug-in.

Provides actions for text manipulation:

  • Toggle style (camelCase, hyphen-lowercase, HYPHEN-UPPERCASE, snake_case, SCREAMING_SNAKE_CASE, dot.case, words lowercase, Words Capitalized, PascalCase)
  • To SCREAMING_SNAKE_CASE (or to camelCase)
  • To snake_case (or to camelCase)
  • To dot.case (or to camelCase)
  • To hyphen-case (or to camelCase)
  • To hyphen-case (or to snake_case)
  • To camelCase (or to words)
  • To PascalCase (or to camelCase)
  • Capitalize selected text
like image 109
CrazyCoder Avatar answered Nov 03 '22 01:11

CrazyCoder


if you want to do that without third-party plug-in you can just select the first letter and press

Ctrl + Shift + U

like image 43
Mahdi mehrabi Avatar answered Nov 03 '22 01:11

Mahdi mehrabi