Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove automated closing bracket comments in IntelliJ IDEA

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?

like image 726
Ilja Avatar asked Dec 24 '17 16:12

Ilja


People also ask

How do I turn off auto suggestions in IntelliJ?

By default, IntelliJ IDEA displays the code completion popup automatically as you type. If automatic completion is disabled, press Ctrl+Shift+Space or choose Code | Code Completion | Type-Matching from the main menu. If necessary, press Ctrl+Shift+Space once again.

How do I turn off autocomplete in Pycharm?

Go to File > Settings (or Ctrl + Alt + S ) > [IDE Settings] > Editor > Code Completion. The "Autopopup code completion" setting will determine if the popup opens automatically. Below it, the "Insert selected variant by typing dot, space, etc." is likely the setting you want to turn off.


2 Answers

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

like image 196
Alexander Doroshko Avatar answered Sep 28 '22 03:09

Alexander Doroshko


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"
 },
like image 32
Robin Avatar answered Sep 28 '22 04:09

Robin