In this article, I will show you how to convert your selected text to CamelCase using Notepad++. There are many ways that you can convert text to camel case, but if you have Notepad++ available on your computer, this will be quick and easy. CamelCase is when you have a grouping of words with no spaces and each of the first letters of the words are capitalized. ThisWouldBeAnExampleOfCamelCase 🙂
To start, select the text you want to convert to CamelCase.
Next, go to the main menu and select
Convert Case to ->
Proper Case. You can also use the shortcut key of
Alt + U.
As a result, you have a sentence and each of the words is capitalized. Now we just need to remove the spaces.
To remove the spaces we are going to use find and replace. You can bring this window up by using the shortcut
Ctrl + f. Once the modal is open, you will put a space
Find what input. For the
Replace with, we want to make sure that there is nothing in this input. Essentially what we are doing here is finding spaces and replacing them with nothing. Once you have this setup, click the
Replace All button.
As a result, you should see that you now have your camelCase string. It is up to you if you would like the first word in the string to be capital or not. You can make this change manually.
This also works if you only want it to apply to a certain piece of text. To do this only highlight the text that you would like converted to camel case.
If we want, there are also many online resources that will allow us to convert text to camel case. I recommend that you are careful with these tools. If you are handling sensitive information it is possible that these online tools may collect your data. This mean they can now see and store this information.
If you would like to suggest a new article or video to be released, please reach out via the Contact Page. I look forward to hearing your feedback and providing content that is helpful for you!
3 thoughts on “Notepad++ Convert to Camel Case”
Camel case isn’t just a random assignment of upper and lower case letters! Camel case starts the first word with lowercase, then the first letter of each subsequent word is UPPERCASE, i.e.:
Thank you for the feedback. That was definitely a misunderstanding on my part. I will work on getting this article updated, and a new video!
Way too long later, I finally go this article updated. Thanks again for the feedback. I really messed up on this one.