A plugin for IntelliJ IDEA and Android Studio.
Lowlights all calls to functions annotated with a custom annotation and allows folding of all such calls at once.
Without lowlighting | With lowlighting | Lowlighting collapsed |
---|---|---|
-
Declare an annotation. Can be declared either in Java or Kotlin.
package com.playground.analytics @Retention(value = AnnotationRetention.SOURCE) annotation class Lowlight
-
Create a
.lowlighting
file in the root directory and add the fully qualified name of the annotation.com.playground.analytics.Lowlight
-
Annotate a function with the annotation.
@Lowlight fun logEvent( firebaseEventName: String? = null, firebaseParameterName: String? = null, firebaseParameterValue: String? = null, firebaseParameterMap: Map<String, String?>? = null, )
-
All invocations of the annotated function will be lowlighted.
- Access the Plugins page in IDE settings
- On Windows:
File
>Settings
(Ctrl+Alt+S) >Plugins
- On MacOs:
Preferences
(⌘ ,) >Plugins
- Install plugin
- Conveniently from within IDE:
Plugins
>Marketplace
>Search for "Lowlighting"
>Install
- Or download the latest release and install it manually using:
Plugins
>⚙️
>Install plugin from disk...