Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect comment prefix used when copy-pasting #53825

Open
Pante opened this issue Oct 23, 2023 · 1 comment
Open

Incorrect comment prefix used when copy-pasting #53825

Pante opened this issue Oct 23, 2023 · 1 comment
Labels
area-intellij Tracking issues for the Dart IntelliJ plugin.

Comments

@Pante
Copy link

Pante commented Oct 23, 2023

dart info output:

#### General info

- Dart 3.1.2 (stable) (Tue Sep 12 16:26:23 2023 +0000) on "windows_x64"
- on windows / "Windows 10 Home" 10.0 (Build 22621)
- locale is en-SG

#### Process info

| Memory | CPU | Elapsed time | Command line |
| -----: | --: | -----------: | ------------ |
| 123 MB |  -- |              | dart.exe     |
| 411 MB |  -- |              | dart.exe     |
|  87 MB |  -- |              | dart.exe     |
| 401 MB |  -- |              | dart.exe     |
|  77 MB |  -- |              | dart.exe     |

I'm unsure if this is an issue with Dart analysis or Dart's IntelliJ plugin.

At the moment, pasting strings that spans across multiple lines in a doc comment yields the incorrect comment prefix (// instead of ///).

Suppose I want to paste a code snippet in:
image

The following is expected:
image

However, it produces the following:
image

This is quite annoying since it makes pasting examples in the documentation tedious.

@lrhn
Copy link
Member

lrhn commented Oct 23, 2023

It could be IntelliJ itself.
When I paste in VSCode with the Dart plugin, I get no leading comments added at all. I don't think the analysis/language server is involved in the pasting at all.

@lrhn lrhn added the area-intellij Tracking issues for the Dart IntelliJ plugin. label Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-intellij Tracking issues for the Dart IntelliJ plugin.
Projects
None yet
Development

No branches or pull requests

2 participants