https://kotlinlang.org logo
#android
Title
# android
t

Travis Griggs

10/24/2019, 10:16 PM
Does AndroidStudio for Kotlin have anything like the
// MARK:
syntax that shows up in XCode/Swift. It’s really handy for organizing chunks of functionality in different files
t

Travis Griggs

10/24/2019, 10:28 PM
I don’t want to fold/hide it so much as be able to quickly navigate to it though. i could hide everything by default, and then constantly unhide/hide as I enter/exit different regions, but that seems burdonsome overhead just for navigation
w

wasyl

10/24/2019, 10:34 PM
Regions do show in code structure:
image.png
image.png
So if you open File Structure dialog (cmd + F12 on mac) or Structure window (cmd + 7) you can type region name to search it and then enter to navigate
👍 3
🎉 4
t

Travis Griggs

10/24/2019, 10:47 PM
oh awesome. thank you
r

Ray Ryan

10/24/2019, 11:30 PM
Whoa, TIL
d

Dragan Stanojević - Nevidljivi

10/25/2019, 2:42 AM
Also, look into Navigate menu... You have jumping to next/previous method, but also Navigate -> Bookmarks which can point on any line of interest...
3 Views