简体   繁体   中英

Web Forms Formatting Issue Using Visual Studio 2012

I upgraded to Visual Studio 2012 and I can't seem to get the formatter to unwrap my directive tags. I have this directive tag

<%@ Page Title=""
    Language="C#"
    MasterPageFile="~/MasterPages/Master1.Master"
    EnableEventValidation="false" 
    AutoEventWireup="true" 
    CodeBehind="WebForm1.aspx.cs" 
    Inherits="Test" %>

and when I format it, nothing happens (keyboard shortcut control+k, control+f). In Visual Studio 2010, it will unwrap the tag so it looks like this.

<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Master1.Master" EnableEventValidation="false" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Test" %>

I've compared settings between the two versions of Visual Studio and I can't see anything different that would affect how directive tags would get unwrapped. What settings do I need to change to get the directive tag to unwrap?

According to my VS2012, the Key combination is the same (Ctrl E, F).

You can look which Combination your VS is using by going in the Edit Menu, then Advanced >.

根据Visual Studio团队的答复,这是一个已知的错误,不会得到解决。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM