Remove automated closing bracket comments in IntelliJ IDEA

2,688

Solution 1

The checkbox is in Settings (Preferences) | Editor | General | Appearance, toggle 'Show closing labels in Dart source code'.

Solution 2

And in the vs code editor, change this setting to false

"dart.closingLabels": true

You can find this setting easily. Go setting and search(Ctrl+f) dart.closingLabels

Update 24.11.2019:

If you want to customize the closing label color, you can do this. In vscode, open your settings.json file and set this setting

"workbench.colorCustomizations": {
    "dart.closingLabels": "#FF5733"
 },
Share:
2,688
Ilja
Author by

Ilja

That dev at the local ☕️ shop sipping on late.

Updated on November 30, 2022

Comments

  • Ilja
    Ilja over 1 year

    I'm seeing following happen when working in intelliJ IDEA with Dart based project

    enter image description here

    All comments there i.e // AppBar are auto generated, I assume for easier tracking of what closing brackets belong where. Weird bit is that I can't even highlight them, nor delete them and when I copy code they are not copied over.

    Is there a way to disable this feature in the ide?