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

RSRP-284069: extract interface creates with incorrect bracing style (does not respect user selection)

$
0
0
Reporter James Manning (James.Manning) James Manning (James.Manning)
Created Nov 30, 2011 1:55:12 AM
Updated Apr 16, 2018 11:00:30 AM
Resolved Apr 16, 2018 11:00:30 AM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Can't Reproduce
Type Bug
Fix version Backlog
Affected versions 6.1
Fixed In Version ReSharper Undefined
VsVersion All Versions
JetBrains ReSharper 6.1 EAP C# Edition Pre-Release
Build 6.1.8.21 on 2011-11-20T06:34:02
Plugins: none
Visual Studio 10.0.40219.1.

when i let R# create new code (extract interface is one example, but it happens for other cases as well), it uses the K&R bracing style (IIRC, that's the R# default) instead of my own bracing choice set in the R# options (BSD). This means that I then have to reformat the generated file in order to fix the bracing style.

Generated code like 'extract interface' should use the user's choices for formatting. Worst-case, this seems simple to fix by adding a 'format code' call afterwards for the newly generated code, but that's probably not viable in all code generation cases.

Viewing all articles
Browse latest Browse all 106942

Trending Articles



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