How to save dart file in file system with android studio generated comments?
Asked Answered
G

1

9

I like how Android Studio and Visual Studio , generate the comments for each closing brackets, but when I open the same file in notepad++ or any other text editor, I don't see those comments. Is there a way to generate the saved dart file so it has those comments stored as part of the text code( in comment) ?

Here is one code example that how code looks in android studio.

How It Looks in Android Studio

but when opened with notepad it does not have the comment MaterialApp. I am guessing there is some settings in android studio that will let me save file with generated comments, so it can be useful outside of Android studio like in git etc.

Actual File contents

Gossipry answered 21/10, 2019 at 2:17 Comment(4)
jetbrains.com/help/idea/code-style-dart.html and flutter.dev/docs/development/tools/formattingDemission
These are really visual hints added by flutter/dart plugin. Even copy & paste doesn't work (even the HTML format in the clipboard doesn't contain these comments).Androgen
@simon-mourier what is the name of this plugin and does it have a git repoGossipry
I guess its in the flutter plugin (as dartfmt doesn't seem to be able to add these comments AFAIK), so I would be this but I'm unsure: github.com/flutter/flutter-intellijAndrogen
G
1

These comments are generated "on the fly" by the Flutter plugin for Android Studio. At no time, these comments are inserted into your source files. They are just shown within the IDE. So I think there is no way to "export" these comments.

Gauge answered 29/11, 2019 at 11:4 Comment(2)
what is the name of this plugin and does it have a git repoGossipry
You can find the source code here: github.com/flutter/flutter-intellijGauge

© 2022 - 2024 — McMap. All rights reserved.