From the course: Android Studio Essential Training 2020
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Search for files and code
From the course: Android Studio Essential Training 2020
Search for files and code
- Android studio gives you many different ways to find code. If you have a file open and you want to find code in the file, you can search for it, by selecting Edit, Find, and then choosing the first menu choice, Find. Or you can press Command + F on Mac, or Control + F on Windows. A text box appears at the top of the editor, and then you can start searching. A toolbar appears next to the text box that lets you jump around in the code looking for next and previous occurrences, and you can also filter your search by matching case, looking for full words, or using regular expressions. You can also do find and replace operations, by selecting Find and then Replace, and then you'll get two text boxes. So for example, if I wanted to search for Toast uppercase, only where the case matched exactly what I was looking for, and replaced that with toast lowercase, that's how I would do it. If I click Replace All, I would replace all…