Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Ctrl K + D (code formatting) not working

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.

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

like image 769
tempid Avatar asked Sep 06 '25 05:09

tempid


1 Answers

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

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

use Ctrl K + D

        int[] ok = { 1, 2, 3 }; // nice formatting
        int[] ko ={
                      1   ,
                         2,
                      3    
                 }; // nothing changed :(
like image 160
Pascal Venot Avatar answered Sep 07 '25 22:09

Pascal Venot