All Projects → lppedd → idea-return-highlighter

lppedd / idea-return-highlighter

Licence: MIT license
Highlight return keywords.

Programming Languages

kotlin
9241 projects
java
68154 projects - #9 most used programming language
HTML
75241 projects
shell
77523 projects

Projects that are alternatives of or similar to idea-return-highlighter

ansible-vault-editor-idea-plugin
Ansible Vault Editor IntelliJ Plugin with auto encryption/decryption
Stars: ✭ 29 (+20.83%)
Mutual labels:  intellij, intellij-plugin, idea-plugin
intellij-ui-test-robot
The library allows you to write and execute UI tests among IntelliJ IDEA. You can test your Plugin.
Stars: ✭ 60 (+150%)
Mutual labels:  intellij, intellij-plugin, idea-plugin
intellij-treeInfotip
IDEA项目结构树中的节点添加显示自定义备注文本IDEA DirectoryNode adds custom text for display
Stars: ✭ 48 (+100%)
Mutual labels:  intellij-plugin, idea-plugin, intellij-idea
xmake-idea
🍨 A XMake integration in IntelliJ IDEA
Stars: ✭ 44 (+83.33%)
Mutual labels:  intellij, intellij-plugin, intellij-idea
gradle-dependencies-plugins-helper-plugin
This is an IntelliJ IDEA plugin for searching dependencies/plugins from JCentral/GradlePlugins inside Gradle projects.
Stars: ✭ 33 (+37.5%)
Mutual labels:  intellij, intellij-plugin, intellij-idea
Intellij Csv Validator
CSV validator, highlighter and formatter plugin for JetBrains Intellij IDEA, PyCharm, WebStorm, ...
Stars: ✭ 198 (+725%)
Mutual labels:  intellij, highlighting, idea-plugin
Squaretest
Tracks issues for the Squaretest plugin for IntelliJ IDEA
Stars: ✭ 32 (+33.33%)
Mutual labels:  intellij, intellij-plugin, intellij-idea
Intellij Figlet
🔌A FIGlet-based ASCII Art generation plugin for IntelliJ based IDEs.
Stars: ✭ 27 (+12.5%)
Mutual labels:  intellij, intellij-plugin, idea-plugin
intelliroutes
Support for Play Routes in IntelliJ IDEA
Stars: ✭ 21 (-12.5%)
Mutual labels:  intellij, intellij-plugin, idea-plugin
Idea Conventional Commit
Context and template-based completion for conventional/semantic commits.
Stars: ✭ 115 (+379.17%)
Mutual labels:  intellij, intellij-plugin, idea-plugin
SideMirror
An Android Studio plugin to mirror your android devices with scrcpy directly from Android Studio.
Stars: ✭ 49 (+104.17%)
Mutual labels:  intellij, intellij-plugin, intellij-idea
Intellij Key Promoter X
Modern IntelliJ plugin to learn shortcuts for buttons
Stars: ✭ 2,689 (+11104.17%)
Mutual labels:  intellij, intellij-plugin
Intellij Sdk Code Samples
Mirror of the IntelliJ SDK Docs Code Samples
Stars: ✭ 217 (+804.17%)
Mutual labels:  intellij, intellij-plugin
uuid-generator-plugin
An IntelliJ Idea plugin to generate UUID (Universally Unique Identifier), ULID (Universally Unique Lexicographically Sortable Identifier) and CUID (Collision Resistant Unique Identifier)
Stars: ✭ 30 (+25%)
Mutual labels:  intellij, idea-plugin
intellij-quarkus
IntelliJ Quarkus Tools
Stars: ✭ 83 (+245.83%)
Mutual labels:  intellij, intellij-plugin
Idea Php Annotation Plugin
Add PHP annotation support for PhpStorm and IntelliJ
Stars: ✭ 216 (+800%)
Mutual labels:  intellij, intellij-plugin
idear
🎙️ Handsfree Audio Development Interface
Stars: ✭ 84 (+250%)
Mutual labels:  intellij, intellij-plugin
reasonml-idea-plugin
ReasonML Language Plugin for IDEA
Stars: ✭ 320 (+1233.33%)
Mutual labels:  intellij, idea-plugin
IntelliJ-Luanalysis
Type-safe Lua IDE Plugin for IntelliJ IDEA
Stars: ✭ 118 (+391.67%)
Mutual labels:  intellij, intellij-plugin
DockDockBuild
Support for running UNIX Makefiles on a Docker container
Stars: ✭ 43 (+79.17%)
Mutual labels:  intellij, intellij-plugin

🔔 Localization needed! PRs are welcomed (look here for bundles) 😎

Plugin logo

Return Highlighter

Available @ JetBrains Plugins Repository

Looking for the latest plugin binaries? Get them here as .zip
Supported IDE versions: 201.6668 to *

Supported languages

  • Java
  • JavaScript and TypeScript
  • Python
  • PHP
  • Need another language? Open an issue

The aim of this plugin is to highlight return keywords in source code.
Sometimes it happens we find difficult to read source files; take for example this piece of code

1  private toggleRowCheck(rowId: string, doCheck: boolean): boolean {
2    if (doCheck) {
3      if (this.checkedRows.size >= (this.selectionOpt.limit || Infinity)) return false;
4      this.checkedRows.add(rowId);
5    } else {
6      this.checkedRows.delete(rowId);
7    }
8    return true;
9  }

It is not immediately apparent a return statement is present at line 3.
This is why the plugin does

  • Show a gutter icon next to the returning lines (clicking on it will take you to the return statement!)
  • Highlight the return keyword, so that it stands out more

Example

Usage example


The plugin offers some degree of customization.

Choose for which languages to show the gutter icon

You can customize which languages will have the gutter icon via
Settings > Editor > General > Gutter Icons

You'll find a Return Highlighter section, with all available languages listed.

Gutter icons

Disable/Customize the return keyword color highlighting

You can disable or customize how the return keyword is highlighted, to stand out more, via
Settings > Editor > Color Scheme > Return Highlighter

To reset values to the default ones, check Inherit values from.

Style

Limit the scope of the plugin

  • Top-level returns only

    Certain languages offer features like lambda expressions (Java) or function expressions (JavaScript). This means potentially you can have nested functions, and thus nested return statements.

    To highlight only top-level return keywords, depending on the language, look under
    Settings > Return Highlighter > [language]
    and check Only top-level return keywords.

  • Skip simple getters

    Highlighting return statements in simple functions/methods can be annoying.
    Thus it is possible to disable it for such elements.

    To skip return keywords inside simple getters, look under
    Settings > Return Highlighter > [language]
    and check Skip simple getters.

    Scope

    A tooltip is there to show examples of simple getters, per language, but for the sake of README completeness here is one too in TypeScript

    isEnabled(): boolean {
      return true;
    }
    

Author

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].