Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-468759: "Don't indent comments started at first column" option issue

$
0
0
Reporter hype artist (Hypeartist.Hypeartist) hype artist (Hypeartist.Hypeartist)
Created Mar 20, 2018 11:18:09 AM
Updated Apr 7, 2018 10:58:24 AM
Resolved Apr 5, 2018 2:17:33 PM
Subsystem Code Style - Formatter
Assignee Dmitry Osinovsky (Dmitry.Osinovsky)
Priority Show-stopper
State Fixed
Type Bug
Fix version 2018.1
Affected versions No Affected versions
Fixed In Version ReSharper 2018.1 EAP 7
VsVersion VS 2017 RTM

When the option "Don't indent comments started at first column" (in C# -> Formatting Style -> Tabs, Indents, Alignment) is unchecked and Ctrl+/ is pressed for multiple selected lines of code, some lines get commented twice:

//		// class Class
		// {
		// 	private PodPtr<int> _ref;
//		// 	public Class(PodPtr<int> @ref) => _ref = @ref; 
//		// 	public void ChangeRef()=> _ref.Ref++;
//		// 	public int GetValue() => _ref.Ref;
		// }

BTW, overall comments symbols (//) placement is kind of strange. I expect it to be like this (just the way it happens while hitting Ctrl+/ for a single line):

		// class Class
		// {
			// private PodPtr<int> _ref;
			// public Class(PodPtr<int> @ref) => _ref = @ref; 
			// public void ChangeRef()=> _ref.Ref++;
			// public int GetValue() => _ref.Ref;
		// }

JetBrains.ReSharperUltimate.2018.1.EAP3


Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>