mikebai.com

  • Home
  • dev
  • DotNET
  • M365
  • 搞笑
  • 杂七杂八
  • FocusDict
個人BLOG
it developer
  1. Main page
  2. dev
  3. Main content

android studio 中类似VS的代码折叠功能Region

2016-05-05 111hotness 0likes 0comments

慢慢适应,然后更改设置keymap之后,用起来越来越有vs的fu了

http://www.myandroidsolutions.com/2014/06/21/android-studio-intellij-idea-code-regions/

If you ever worked with Xcode then you must know the power of “#pragma mark” macro. You could just define regions of code using that and sometimes it helps when you have classes that can get a bit big or if you just want to have a nice structure of your class.

Well you can do that on Android Studio or IntelliJ IDEA or any of JetBrains’s IDE.

Using the steps below you can group your code and name the group however you like and also contract/expand the groups of code.

Code without grouping

Code without grouping feature

1. Open the IDE you are using

Tag: Nothing
Last updated:2016-05-05

mikebai

This person is a lazy dog and has left nothing

Like
< Last article
Next article >

COPYRIGHT © 2025 mikebai.com. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang