From the course: Android Studio Essential Training 2020
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Useful code editing shortcuts
From the course: Android Studio Essential Training 2020
Useful code editing shortcuts
- Android studio has many keyboard shortcuts that you can use to speed up your programming. As I showed previously, you can learn about all of the IDE's keyboard shortcuts by going to the help menu and choosing keymap reference. And that will open this pdf file in a browser window. There's one set of keyboard shortcuts for Windows and Linux, and another set for macOS. I'll show you a few of my favorite keyboard shortcuts, but it's important to understand that there are so many, you just need to go explore them yourself. One of the most common things you might need to do, is add comments to your code. You can select some code, and then press command and the forward slash key on Mac or control and slash on Windows. Do it once to comment and do it again to uncomment, so you're toggling the comment characters on and off. When you're coding, you'll see that autocomplete happens pretty much automatically. For example, if I say I…
Contents
-
-
-
-
-
-
-
-
Create new Kotlin and Java code files3m
-
Edit code files in the editor window3m 15s
-
Useful code editing shortcuts4m 49s
-
Refactor and inspect code3m 6s
-
Create and use live templates3m 32s
-
Edit layouts with design and text mode3m 36s
-
Add MotionLayout to an XML layout file2m 2s
-
Animate views in the Motion Editor4m 56s
-
Challenge: Extract code to a new class1m 8s
-
Solution: Extract code to a new class2m 12s
-
-
-
-
-