How to inline custom text in editor
I want to inline comments to source code in Editor. Is it possible to create a region in source code editor to display such comments? The best would be to allow collapse/expand such region.
Any help?
Please sign in to leave a comment.
Hello Marek,
Sorry, I don't quite understand what you mean. It is not possible to display
some text directly in the editor which is not present in the underlying document.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Exactly.
The use case:
I want to display comments entered by user in code review tool. Comment is not a part of document, but points to some place in document. Is it possible to display such information directly in editor (not gutter) - just distinguished by color, border, something?
Hello Marek,
No, this is not currently possible via standard APIs. You may be able to
get something done with JLayeredPane hacks or something similar, but this
is of course completely unsupported and will hardly be reliable enough.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Hello Dmitry,
I wonder if this is possible with IDEA 15?
I'm looking for something like comments in Upsource (but for regular file, not a diff):
Thank you.
Kind regards,
Daniel Penkin
Him I have a similar use case (I think). I'd like to represent files within files. Something like the following:
File 1:
<This is File 1>
File 2:
<This is file 2>
+ <File 1>
(when expanded:)
- <File 1>
<This is file 1>
<This is the end of File 2>
I assume this is not possible within the OpenAPI still. Is it something that would be complex to add?