Search

Razor Editor with Keep Tabs turned on by dnlstffrd

Closed
as Duplicate Help for as Duplicate

7
0
Sign in
to vote
Type: Suggestion
ID: 637445
Opened: 1/21/2011 1:02:45 PM
Access Restriction: Public
0
Workaround(s)
Currently when you have the Keep Tabs option turned on for the Razor editor, it messes up the formatting of the page, because the Razor editor is expecting spaces. It would be nice if the Razor editor honored the Keep Tabs option and formatted things the same as if the Insert Spaces option was turned on.
Details (expand)

Visual Studio/Silverlight/Tooling version

Visual Studio 2010

What category (if any) best represents this feedback?

Reliability

Steps to reproduce

Open a Razor (.cshtml) file
Go to Tools > Options > Text Editor > All Languages > Tabs and choose Keep Tabs
Format the document (Ctrl + K, Ctrl + D)

Product Language

English

Operating System

Windows 7

Operating System Language

English

Actual results

Any block statements (if, foreach, for, etc) have their braces as spaces, and not tabs, and corresponds to the number of tabs that the statement has.

Expected results

The braces should be tabs corresponding to the number of tabs that the declaring statement has.
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 2/11/2011 at 1:36 PM
Thank you for passing along this issue to us. At this point, we are pulling together this and other feedback as part of our planning and evaluation for the next release. We know that our customers are the most qualified people to help us learn how to make our products better, and we greatly appreciate hearing from you.
Posted by Microsoft on 1/21/2011 at 1:14 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Sign in to post a workaround.