Visual Studio Ctrl K + D(代码格式)不起作用 [英] Visual Studio Ctrl K + D (code formatting) not working

查看:202
本文介绍了Visual Studio Ctrl K + D(代码格式)不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Ctrl K + D 在某些文件中不起作用,因为它们包含某些资源的路径(masterpageurl / images / js / css类名)在运行时生成。

Ctrl K + D in a Visual Studio 2010 Sharepoint project is not working in some files as they contain paths to some resources (masterpageurl/images/js/css classnames) that get generated at runtime.

我如何使VS忽略这些资源是否存在?

How do I make VS to "ignore" checking if these resources exist or not?

推荐答案

代码格式在多行数组中不起作用:

Code formatting doesn't work in multi-line arrays :

        int[] ok={ 1   ,   2, 3   };
        int[] ko={
                      1   ,
                         2,
                      3    
                 };

使用Ctrl K + D

use Ctrl K + D

        int[] ok = { 1, 2, 3 }; // nice formatting
        int[] ko ={
                      1   ,
                         2,
                      3    
                 }; // nothing changed :(

这篇关于Visual Studio Ctrl K + D(代码格式)不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆