Is it possible to disable rich comments per file type?
i.e .gitignore uses # char as comment prefix. And CodeRush displays it as big comment.
Rich Comment with "#" symbols in .gitignore files works incorrectly
Answers approved by DevExpress Support
We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.
Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.
- v18.2.4Download Official Update
Hello Miha,
Thank you for contacting us.
I tried to reproduce the issue with the .gitignore file but without success.
I have created a simple '.gitignore' file with a comment and opened it in Visual Studio.
CodeRush does not affect it in any way on my side.
Here is a screencast that illustrates my attempts: https://www.screencast.com/t/mmjL6spn
So, would you please describe the steps that I should execute to reproduce this issue in detail?
I look forward to your response.
Hi Pavel,
That's interesting. Attached my view, this is an excerpt of .gitignore
## Ignore Visual Studio temporary files, build results, and ## files generated by popular Visual Studio add-ons. # User-specific files *.suo *.user *.userosscache *.sln.docstates # User-specific files (MonoDevelop/Xamarin Studio) *.userprefs # Build results [Dd]ebug/ [Dd]ebugPublic/ [Rr]elease/ [Rr]eleases/ [Xx]64/ [Xx]86/ [Bb]uild/ bld/ [Bb]in/ [Oo]bj/
Any idea why is my .gitingore triggering rich comments?
A repro note:
- create new .net 4.6.1 console application
- add text file, name it .gitignore
- paste the content from above
I guess it's all about what program one uses to open it (righ click on .gitgnore, open with…)
- Source Code or Common Language Editor Supporting TextMate Bundles (<- for some reason this is my default) would yield rich comments
- JSON editor or XML editor won't
If I name it tubo.txt, then no rich comments.
Interestingly enough, if I open a .txt file with Source Editor, then no rich comments as well.
I guess this makes sense, but what editor should I use for .gitignore then?
Thank you for providing additional information.
I have researched what the "Source Code or Common Language Editor Supporting TextMate Bundles" item means and found that it is related to the "Syntax Highlighting Pack" extension.
I have installed this extension on my machine and I managed to reproduce the issue now.
So, we will fix this issue and notify you about our results.
Just note that even when I open .gitignore with Source Code (Text) editor I'm getting rich comments.
Thank you for the clarification, I have exactly the same behavior on my side, Miha.