Search code examples
rpycharm

Stop Pycharm from auto-tagging the end of a function with "^function_name"


When using the R plugin, Pycharm auto-labels the end of every function with "^function_name" or "^function_name". It labels the end of blocks too. How can I disable this behavior?

enter image description here


Solution

  • These are called inlay hints and you can disable them by doing the following:

    Go to Settings -> Editor -> Inlay Hints.

    Then, expand Values and uncheck it for R.

    Here's an image of the setting:

    enter image description here

    After disabling it, your sample code should look like this in PyCharm:

    enter image description here