-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from Antimonit/readme
Add README
- Loading branch information
Showing
2 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Lowlighting | ||
[![Jetbrains Plugin](https://img.shields.io/jetbrains/plugin/v/15206-lowlighting.svg)](https://plugins.jetbrains.com/plugin/15206-lowlighting) | ||
[![Downloads](https://img.shields.io/jetbrains/plugin/d/15206-lowlighting.svg)](https://plugins.jetbrains.com/plugin/15206-lowlighting) | ||
[![Rating](https://img.shields.io/jetbrains/plugin/r/rating/15206-lowlighting.svg)](https://plugins.jetbrains.com/plugin/15206-lowlighting) | ||
|
||
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. | ||
|
||
<img src="images/lowlighting.png" /> | ||
|
||
## Usage | ||
|
||
1) Declare an annotation. Can be declared either in Java or Kotlin. | ||
```kotlin | ||
package com.playground.analytics | ||
|
||
@Retention(value = AnnotationRetention.SOURCE) | ||
annotation class Lowlight | ||
``` | ||
|
||
2) Create a `.lowlighting` file in the root directory and add the fully qualified name of the annotation. | ||
```text | ||
com.playground.analytics.Lowlight | ||
``` | ||
|
||
3) Annotate a function with the annotation. | ||
```kotlin | ||
@Lowlight | ||
fun logEvent( | ||
firebaseEventName: String? = null, | ||
firebaseParameterName: String? = null, | ||
firebaseParameterValue: String? = null, | ||
firebaseParameterMap: Map<String, String?>? = null, | ||
) | ||
``` | ||
|
||
4) All invocations of the annotated function will be lowlighted. | ||
|
||
## Installation | ||
|
||
1) Access the Plugins page in IDE settings | ||
* On Windows: | ||
- `File` > | ||
`Settings` (<kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>S</kbd>) > | ||
`Plugins` | ||
* On MacOs: | ||
- `Preferences` (<kbd>⌘</kbd> <kbd>,</kbd>) > | ||
`Plugins` | ||
|
||
2) Install plugin | ||
- Conveniently from within IDE: | ||
- `Plugins` > | ||
`Marketplace` > | ||
`Search for "Lowlighting"` > | ||
`Install` | ||
- Or download the [latest release](https://plugins.jetbrains.com/plugin/15206-lowlighting) and install it manually using: | ||
- `Plugins` > | ||
`⚙️` > | ||
`Install plugin from disk...` | ||
|
||
|
||
## License | ||
[Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.