<tfoot id='Arwgs'></tfoot>

    1. <i id='Arwgs'><tr id='Arwgs'><dt id='Arwgs'><q id='Arwgs'><span id='Arwgs'><b id='Arwgs'><form id='Arwgs'><ins id='Arwgs'></ins><ul id='Arwgs'></ul><sub id='Arwgs'></sub></form><legend id='Arwgs'></legend><bdo id='Arwgs'><pre id='Arwgs'><center id='Arwgs'></center></pre></bdo></b><th id='Arwgs'></th></span></q></dt></tr></i><div id='Arwgs'><tfoot id='Arwgs'></tfoot><dl id='Arwgs'><fieldset id='Arwgs'></fieldset></dl></div>

        <legend id='Arwgs'><style id='Arwgs'><dir id='Arwgs'><q id='Arwgs'></q></dir></style></legend>

        <small id='Arwgs'></small><noframes id='Arwgs'>

        • <bdo id='Arwgs'></bdo><ul id='Arwgs'></ul>

        在每个标记属性上换行并在 Visual Studio HTML 代码编辑器中保持对齐

        Break line on each tag attribute and keep them aligned in Visual Studio HTML code editor(在每个标记属性上换行并在 Visual Studio HTML 代码编辑器中保持对齐)
          <bdo id='zozOD'></bdo><ul id='zozOD'></ul>

              <tbody id='zozOD'></tbody>
            <i id='zozOD'><tr id='zozOD'><dt id='zozOD'><q id='zozOD'><span id='zozOD'><b id='zozOD'><form id='zozOD'><ins id='zozOD'></ins><ul id='zozOD'></ul><sub id='zozOD'></sub></form><legend id='zozOD'></legend><bdo id='zozOD'><pre id='zozOD'><center id='zozOD'></center></pre></bdo></b><th id='zozOD'></th></span></q></dt></tr></i><div id='zozOD'><tfoot id='zozOD'></tfoot><dl id='zozOD'><fieldset id='zozOD'></fieldset></dl></div>
              <legend id='zozOD'><style id='zozOD'><dir id='zozOD'><q id='zozOD'></q></dir></style></legend>

                <tfoot id='zozOD'></tfoot>
                • <small id='zozOD'></small><noframes id='zozOD'>

                • 本文介绍了在每个标记属性上换行并在 Visual Studio HTML 代码编辑器中保持对齐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如果你希望在下一个版本的 VS 中实现这一点,请投票

                  <小时>

                  如果你希望在下一个版本的 VS 中实现这一点,请投票 这里.

                  解决方案

                  如果你觉得勇敢,你可以编写一个编辑器扩展来为你做这件事.看看 Noah 前段时间为想法编写的 align 扩展:https://github.com/NoahRic/AlignAssignments

                  If you'd like to see this implemented in the next version of VS, please vote for it here.


                  Suppose the following horizontally lengthy <button> HTML declaration:

                  <button type="submit" class="btn btn-primary" id="save" name="action:@ViewContext.RouteData.Values["action"]"><i class="icon-save icon-large"></i> @Localization.Save</button>
                  

                  As you see all tag attributes are inline such that they extend a long way to right in the code editor...

                  Do you know of any Visual Studio option or extension that allows it to be formatted with Ctrl + K then Ctrl + F like this:

                  <button type="submit"
                          class="btn btn-primary"
                          id="save"
                          name="action:@ViewContext.RouteData.Values["action"]">
                  <i class="icon-save icon-large"></i>@Localization.Save
                  </button>
                  

                  I think the above format makes it easy to spot a given attribute although it'll clearly make the vertical scroll-bar a little longer. :)

                  I tried fiddling with Visual Studio options in TOOLS => Options... => Text Editor => HTML but didn't find an option to control this behavior.

                  Of course I can align it manually but then if I hit Ctrl + K then Ctrl + F by mistake I lose all the custom made formatting.

                  If there's no such a thing available, I think this makes a great idea for a Visual Studio extension. As a plus it could even alphabetically order the attributes. :)


                  Doing a little bit more Googling I found that the XAML editor in Visual Studio has what I'd like to have in the HTML editor:

                  Position each attribute on a separate line


                  I asked this same question at the Visual Studio Extensibility forum:

                  http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/0d97c205-9f29-4ba7-9d0b-253413077dce/


                  If you'd like to see this implemented in the next version of VS, please vote for it here.

                  解决方案

                  If you feel brave, you can write an editor extension that does this for you. Take a look at the align extension that Noah wrote a while ago for ideas: https://github.com/NoahRic/AlignAssignments

                  这篇关于在每个标记属性上换行并在 Visual Studio HTML 代码编辑器中保持对齐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  quot;Status Code:200 OK (from ServiceWorker)quot; in Chrome Network DevTools?(“状态码:200 OK(来自 ServiceWorker)在 Chrome 网络开发工具中?)
                  What is quot;X-Content-Type-Options=nosniffquot;?(什么是“X-Content-Type-Options=nosniff?)
                  SmtpJs API not working! is there any way to send emails using SMTP server with JavaScript or JQuery(SmtpJs API 不工作!有没有办法使用带有 JavaScript 或 JQuery 的 SMTP 服务器发送电子邮件)
                  Can I send email using javascript(我可以使用 javascript 发送电子邮件吗)
                  Select All the objects on canvas using Fabric.js(使用 Fabric.js 选择画布上的所有对象)
                  Crop the image using JavaScript(使用 JavaScript 裁剪图像)

                    <i id='EaLYA'><tr id='EaLYA'><dt id='EaLYA'><q id='EaLYA'><span id='EaLYA'><b id='EaLYA'><form id='EaLYA'><ins id='EaLYA'></ins><ul id='EaLYA'></ul><sub id='EaLYA'></sub></form><legend id='EaLYA'></legend><bdo id='EaLYA'><pre id='EaLYA'><center id='EaLYA'></center></pre></bdo></b><th id='EaLYA'></th></span></q></dt></tr></i><div id='EaLYA'><tfoot id='EaLYA'></tfoot><dl id='EaLYA'><fieldset id='EaLYA'></fieldset></dl></div>
                    <tfoot id='EaLYA'></tfoot>
                      <tbody id='EaLYA'></tbody>
                    1. <small id='EaLYA'></small><noframes id='EaLYA'>

                      <legend id='EaLYA'><style id='EaLYA'><dir id='EaLYA'><q id='EaLYA'></q></dir></style></legend>
                      • <bdo id='EaLYA'></bdo><ul id='EaLYA'></ul>