Thursday 7 December 2017

Sharepoint People Picker

People Picker getting user by sppeoplepicker.min.js & updating (Single & Multi User) using REST API IN Sharepoint 2013


Ref Link : http://sharepointdeveloperblog.blogspot.in/2016/09/sppeoplepickerminjs-add-list-item-with.html
Download here Full code.. 

Wednesday 8 November 2017

javascript function vs var function


The difference is that start is a function expression and so only defined when that line is reached, whereas M is a function declaration and is defined as soon as its surrounding function or script is executed.
For example, a function expression:
// TypeError: undefined is not a function
start();
var start=function(){
    console.log("Start function called !");
}
//It will work 
m();
 function m() {
    console.log("Function M is working fine");
   
}

Wednesday 31 May 2017

Gacutil.exe successfully adds assembly, but assembly not viewable in explorer. Why?

 C:\_Dev Projects\VS Projects\bmccormack\CatalogPromotion\CatalogPromotionDll\bin
    \Debug>gacutil /i CatalogPromotionDll.dll
    Microsoft (R) .NET Global Assembly Cache Utility.  Version 4.0.30319.1
    Copyright (c) Microsoft Corporation.  All rights reserved.

    Assembly successfully added to the cache


That's because you use the .NET 4.0 version of gacutil.exe. 
It stores the assembly in a different GAC, the one in 
c:\windows\microsoft.net\assembly. Where all .NET 4.0 assemblies 
are stored. There is no shell extension handler for that one,
 the folders are visible as-is. You can have a look-see with 
 Windows Explorer, .you'll see the internal structure of the GAC
 folders. You shouldn't have any trouble finding your assembly back,
 the GAC isn't particularly complicated.If the assembly is intended
 to be used by an app that targets an earlier version of .NET then 
 you should use the .NET 2.0 version of gacutil.exe, stored 
 in C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin

Tuesday 30 May 2017

How to Create Custom SharePoint 2013 List using PowerShell?

Ref : https://www.codeproject.com/articles/808246/how-to-create-custom-sharepoint-list-using-powersh

SharePoint provides an interface called AddFieldAsXml. This basically creates a field based on the specified schema. Nothing fancy. Right?
However, this can be very handy when you want to create your own custom lists in SharePoint programmatically. I will be using PowerShell as an example to demonstrate how you can simply create SharePoint Lists based on plain, simple xml definitions.
To start with, I created an XML template based on which I want to create my custom list using PowerShell.
xml version="1.0" encoding="utf-8"?>
<Template>
 <Field Type="Text" DisplayName="Name" Required="False" 

 MaxLength="255" StaticName="Name" Name="Name" />
 <Field Type="Number" DisplayName="Phone Number" 

 Required="False" MaxLength="255" 

 StaticName="PhoneNumber" Name="PhoneNumber" />
 <Field Type="DateTime" DisplayName="Date of Birth" 

 Required="False" MaxLength="255" 

 StaticName="DateOfBirth" Name="DateOfBirth" />  
 <Field Type="Choice" DisplayName="Annual Salary" 

 Required="False" Format="Dropdown" FillInChoice="FALSE" 

 StaticName="AnnualSalary" Name="AnnualSalary">
            <Default>0 - 10000</Default>
            <CHOICES>
                <CHOICE>0 - 10000</CHOICE>
                <CHOICE>10000 - 50000</CHOICE>
                <CHOICE>50000 - 100000</CHOICE>
                <CHOICE>100000 or more</CHOICE>
            </CHOICES>
       </Field> 
</Template>
In this example, I have used TextNumberDate and Choice as the Field Types. But this could be anything which is supported by SharePoint or even your own content types. Check the documentation on MSDN for Field Element.
The next step is to read this XML file, parse it and use the AddFieldAsXml method to create fields in this list. The PowerShell snippet below does the trick. Straight and simple. Isn’t it?
Add-PSSnapin Microsoft.SharePoint.PowerShell 

function CreateList($siteCollectionUrl, $listName, $templateFile){
 
 $spWeb = Get-SPWeb -Identity $siteCollectionUrl 
 $spTemplate = $spWeb.ListTemplates["Custom List"] 
 $spListCollection = $spWeb.Lists 
 $spListCollection.Add($listName, $listName, $spTemplate) 
 $path = $spWeb.url.trim() 
 $spList = $spWeb.GetList("$path/Lists/$listName")
 $templateXml = [xml](get-content $templateFile)
 foreach ($node in $templateXml.Template.Field) {
 
  $spList.Fields.AddFieldAsXml($node.OuterXml, 
  $true,[Microsoft.SharePoint.SPAddFieldOptions]::AddFieldToDefaultView)
 }
 $spList.Update()
}

$siteCollectionUrl = "http://manas.com"
$listName = "New Custom List"
$templateFile = "template.xml"

CreateList $siteCollectionUrl $listName $templateFile
And here is the result, just by configuration in XML file, you can create lists using PowerShell.

Monday 8 May 2017

Sharepoint Client-side HTML Table Pagination using JavaScript

Client-side pagination to large Html table that you can specify the number of rows to show per page.

Html Code : 

script src="/**************/New/jquery-1.10.1.min.js">/script>
script src="/*************/Untitled.js">/script>
style>
#table_id{
border:solid 1px #0072C6;
border-collapse: separate;
}
#table_id #tab-head{
background-color:#005C89;
color:#fff;
}
#table_id #tab-head th {
    padding: 5px;
    font-size: 14px;
    font-weight: bold;
}
#table_id #content .loop-quick-links:hover{
background-color:#f5f5f5
}
#table_id #content .loop-quick-links{
/*background:#E1EEF4;*/
font-size:small;
}
#table_id #content .loop-quick-links td {
/*background:#E1EEF4;*/
padding: 5px;    
}
#table_id #content .loop-quick-links #cntrlink{
text-align:center;
}
#table_id #content .loop-quick-links td a {
    background: #8CA2B0;
    padding: 3px;
    color: #fff;
}
#table_id #content .loop-quick-links td a span{
margin:10px;
font-size:14px;
}
.pg-normal {
color: #000000; 
font-size: 15px; 
cursor: pointer; 
background: #D0B389; 
padding: 2px 4px 2px 4px;            
}
.pg-selected {
color: #fff; 
font-size: 15px; 
background: #000000; 
padding: 2px 4px 2px 4px;            
}

/style>
div>
    table id="table_id" class="display" cellspacing="0" width="80%" align="center">  
        thead id="tab-head">  
            tr>  
                th style="display:none">Employee Name/th>  
                th style="width:120px;">Project Name/th>  
                th style="width:120px;">Task Name/th>  
                th style="width:100px;">Created Date/th>  
                th style="width:100px;">Planned Hours/th>  
                th style="width:100px;">Actual Hours/th>
                th style="width:100px;">Notes/th>
th style="display:none;">Billing Status/th>

/tr>             
        /thead> 
        tbody id="content">/tbody> 
        tfoot>        
        /tfoot>  
    /table>   
    div id="pageNavPosition" style="padding-top: 20px" align="center">/div> 
   script>
        var pager = new Pager('table_id', 11);    
  pager.init();
pager.showPageNav('pager', 'pageNavPosition');
pager.showPage(1);
/script>    


JS File Code:

ExecuteOrDelayUntilScriptLoaded(Getdata, "sp.js"); function Getdata() { var Userid = _spPageContextInfo.userId; var siteUrl = _spPageContextInfo.siteAbsoluteUrl+'/***************/TimeSheet/'; //Subsite URL var context = new SP.ClientContext(siteUrl); var web = context.get_web(); var list = web.get_lists().getByTitle('TimeSheetTranscation'); //List Name var myquery = new SP.CamlQuery(); myquery.set_viewXml('View>Query>Where>Eq>FieldRef Name=\'EmpID\'/>Value Type=\'Number\'> '+ Userid +'/Value>/Eq>/Where> OrderBy>FieldRef Name=\'ID\' Ascending=\'False\'/>/OrderBy>/Query>RowLimit>1000000/RowLimit>/View>'); myItems = list.getItems(myquery); context.load(myItems); context.executeQueryAsync(Function.createDelegate(this, this.success_Getdata), Function.createDelegate(this, this.failed_Getdata)); } function success_Getdata() { try{ var ListEnumerator = this.myItems.getEnumerator(); var text = 'tr>th style="display:none">input type="text" id="txtEmployeeId">input type="text" id="txtEmployee">/th>th>select id="ProjectName" onchange="ProjectChange()">/select>/th>' + 'th>select id="TaskName" onchange="TaskChange()">/select>/th>' + 'th>input type="text" id="txtdate" style="width:70px;">/td>' + 'th align="center">select id="PlnHours" style="width:30px;">/select>/th>' + 'th align="center">input type="number" id="txtah" min="0" max="24" style="width:30px;">/th>' + 'th>input type="text" id="txtNotes" style="width:70px; height:30px;">/th>' + 'th style="display:none">select id="BillingStatus">option>Non Billable/option>option>Billable/option>/select>/th>/tr>'; while (ListEnumerator.moveNext()) { var currentItem = ListEnumerator.get_current(); var EmployeeName = currentItem.get_item('EmployeeName'); var ProjectName= currentItem.get_item('ProjectName'); var TaskName= currentItem.get_item('TaskName'); var DateCreated= new Date(currentItem.get_item('DateCreated')); var date=DateCreated.getDate(); var month = DateCreated.getMonth() + 1; var year=DateCreated.getFullYear(); var DateCreated=month+'/'+date+'/'+year; //var PlannedHours= currentItem.get_item('PlannedHours'); var ActualHours= currentItem.get_item('ActualHours'); var BillingStatus= currentItem.get_item('BillingStatus'); var Notes = currentItem.get_item('Notes'); var id=currentItem.get_item('ID'); text += 'tr class="loop-quick-links" id='+ id +'>'; text += ('td style="display:none">' + EmployeeName + '/td>' + 'td id ="PN">' + ProjectName + '/td>' + 'td id="TN">' + TaskName+ '/td>' + 'td id="DC">' + DateCreated+ '/td>' + 'td align="center">' + ActualHours+ '/td>' + 'td>'+ Notes +'/td>' + 'td style="display:none">' + BillingStatus+ '/td>' + 'td>input type="button" id="btn_update" value="Update" onclick="divshow('+ id +');">input type="button" id="btn_delete" value="Delete" onclick="getConfirmation('+ id +');">/td>/tr>'); } fieldNameElement = document.getElementById('content'); fieldNameElement.innerHTML = text; pager.init(); pager.showPageNav('pager', 'pageNavPosition'); pager.showPage(1); } catch(err) { alert(err.message); } } function failed_Getdata(sender, args) { alert("failed. Message:" + args.get_message()); } function Pager(tableName, itemsPerPage) { this.tableName = tableName; this.itemsPerPage = itemsPerPage; this.currentPage = 1; this.pages = 0; this.inited = false; this.showRecords = function(from, to) { var rows = document.getElementById(tableName).rows; for (var i = 1; i rows.length; i++) { if (i from || i > to) rows[i].style.display = 'none'; else rows[i].style.display = ''; } } this.showPage = function(pageNumber) { if (! this.inited) { alert("not inited"); return; } var oldPageAnchor = document.getElementById('pg'+this.currentPage); oldPageAnchor.className = "pg-normal"; this.currentPage = pageNumber; var newPageAnchor = document.getElementById('pg'+this.currentPage); newPageAnchor.className = "pg-selected"; var from = (pageNumber - 1) * itemsPerPage + 1; var to = from + itemsPerPage - 1; this.showRecords(from, to); } this.prev = function() { if (this.currentPage > 1) this.showPage(this.currentPage - 1); else{ alert('There is no Previous Item'); } } this.next = function() { if (this.currentPage this.pages) { this.showPage(this.currentPage + 1); } else{ alert('There is no next Item'); } } this.init = function() { var rows = document.getElementById(tableName).rows; var records = (rows.length - 1); this.pages = Math.ceil(records / itemsPerPage); this.inited = true; } this.showPageNav = function(pagerName, positionId) { if (! this.inited) { alert("not inited"); return; } var element = document.getElementById(positionId); var pagerHtml = 'span onclick="' + pagerName + '.prev();" class="pg-normal"> Prev /span> '; for (var page = 1; page = this.pages; page++) pagerHtml += 'span id="pg' + page + '" class="pg-normal" onclick="' + pagerName + '.showPage(' + page + ');">' + page + '/span> '; pagerHtml += 'span onclick="'+pagerName+'.next();" class="pg-normal"> Next /span>'; element.innerHTML = pagerHtml; } }

Tuesday 2 May 2017

Get mobile no using Client object model

// Ensure that the SP.UserProfiles.js file is loaded before the custom code runs.
var userProfileProperties;
SP.SOD.executeFunc('SP.js', 'SP.ClientContext', function() {
   // Make sure PeopleManager is available
   SP.SOD.executeFunc('userprofile', 'SP.UserProfiles.PeopleManager', function() {
debugger;
       // get the target users domain name and account name.
    var targetUser = "i:0#.f|membership|inspiredata@gbtmarketingreview.onmicrosoft.com";

    // Get the current client context.
    var clientContext = new SP.ClientContext.get_current();
    //Get PeopleManager Instance
    var peopleManager = new SP.UserProfiles.PeopleManager(clientContext);

    // Get the properties to retrieve
    var profilePropertyNames = ["AccountName", "FirstName","LastName","Assistant", "Office","Personal site","WorkPhone", "Mobilephone","CellPhone","Fax","Department" ];
    var userProfilePropertiesForUser = new SP.UserProfiles.UserProfilePropertiesForUser(
    clientContext,
    targetUser,
    profilePropertyNames);

    // Get user profile properties for the target user
    userProfileProperties =peopleManager.getUserProfilePropertiesFor(userProfilePropertiesForUser);
    // Load the UserProfilePropertiesForUser object.
    clientContext.load(userProfilePropertiesForUser)
    //Execute the Query
    clientContext.executeQueryAsync(onRequestSuccess, onRequestFail);
   });

});




// This function runs if the executeQueryAsync call succeeds.

function onRequestSuccess() {
debugger;
    var messageText = "\" AccountName \" property is "
    + userProfileProperties[0];
    messageText += "
\" FirstName \" property is "
    + userProfileProperties[1];
    messageText += "
\" LastName \" property is "
    + userProfileProperties[2];
    messageText += "
\" Assistant \" property is "
    + userProfileProperties[3];
    messageText += "
\" Office \" property is "
    + userProfileProperties[4];
    messageText += "
\" Personal site \" property is "
    + userProfileProperties[5];
    messageText += "
\" HomePhone \" property is "
    + userProfileProperties[6];
    messageText += "
\" Mobilephone \" property is "
    + userProfileProperties[7];
    messageText += "
\" CellPhone \" property is "
    + userProfileProperties[8];
    messageText += "
\" Fax \" property is "
    + userProfileProperties[9];
    messageText += "
\" Department \" property is "
    + userProfileProperties[10];
 alert("WorkPhone"+userProfileProperties[6])
    $get("Display").innerHTML = messageText;
}

// This function runs if the executeQueryAsync call fails.

function onRequestFail(sender, args) {
debugger;
    $get("Display").innerHTML = "Error: " + args.get_message();
}

Tag A href Events to Click and Double Click

You might want a link to have a special action when double-clicked which prevents the default action of the link (go to another page). So:
Double-click: does something special, does not do normal click event at all
Click: works as normal
You'll need to have a very slight delay on firing off the normal click action, which you cancel when the double click event happens.


script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"

$(document).ready(function(){
function doClickAction() {
  alert("Single Click");
}
function doDoubleClickAction() {
  alert("Double Click");
}

var timer = 0;
var delay = 200;
var prevent = false;

$("#target")
  .on("click", function() {
    timer = setTimeout(function() {
      if (!prevent) {
        doClickAction();
      }
      prevent = false;
    }, delay);
  })
  .on("dblclick", function() {
    clearTimeout(timer);
    prevent = true;
    doDoubleClickAction();
  });
});

Thursday 20 April 2017

Gacutil.exe (Global Assembly Cache Tool)

  1. Open CMD as administrator.
  2. Type the following:
    gacutil /i path_to_assembly_file /f
    For example, type:
    C:\Windows\system32>gacutil /i "D:\bkp\Project\Code xxxx\XXXXX\XXXXXX
    \bin\Release\xxxxx.dll"
    Microsoft (R) .NET Global Assembly Cache Utility.  Version 4.0.30319.33440
    Copyright (c) Microsoft Corporation.  All rights reserved.

    Assembly successfully added to the cache

Monday 27 March 2017

Format code shortcut for Visual Studio?

To answer the specific question, in C# you are likely to be using the C# keyboard mapping scheme, which will use these hotkeys by default:
Ctrl+ECtrl+D to format the entire document.
Ctrl+ECtrl+F to format the selection.
You can change these in Tools > Options > Environment -> Keyboard (either by selecting a different "keyboard mapping scheme", or binding individual keys to the commands "Edit.FormatDocument" and "Edit.FormatSelection").
If you have not chosen to use the C# keyboard mapping scheme, then you may find the key shortcuts are different. For example, if you are not using the C# bindings, the keys are likely to be:
Ctrl + K + D (Entire document)
Ctrl + K + F (Selection only)
To find out which key bindings apply in YOUR copy of Visual Studio, look in the Edit > Advanced menu - the keys are displayed to the right of the menu items, so it's easy to discover what they are on your system.

Monday 20 February 2017

Error occurred in deployment step 'Activate Features': Unable to cast object of type 'Microsoft.SharePoint.SPWeb' to type 'Microsoft.SharePoint.Administration.SPWebApplication'

Hi Friends,

    I am getting following error, Please help me.

Severity Code Description Project File Line Suppression State
Error Error occurred in deployment step 'Activate Features': Unable to cast object of type 'Microsoft.SharePoint.SPWeb' to type 'Microsoft.SharePoint.Administration.SPWebApplication'. SP13TimerJob 0

My Source Code :

using System;
using System.Runtime.InteropServices;
using System.Security.Permissions;
using Microsoft.SharePoint;
using Microsoft.SharePoint.Administration;

namespace SP13TimerJob.Features.TimerJobFeature
{
    ///

    /// This class handles events raised during feature activation, deactivation, installation, uninstallation, and upgrade.
    ///
    ///
    /// The GUID attached to this class may be used during packaging and should not be modified.
    ///

    [Guid("2c4db5bb-eb8a-4134-af07-2cd5050ffb5d")]
    public class TimerJobFeatureEventReceiver : SPFeatureReceiver
    {
        // Uncomment the method below to handle the event raised after a feature has been activated.
        const string JobName = "Demo Job";
        public override void FeatureActivated(SPFeatureReceiverProperties properties)
        {
            try
            {
                SPSecurity.RunWithElevatedPrivileges(delegate()
                {
                    SPWebApplication parentWebApp = (SPWebApplication)properties.Feature.Parent;
                    //SPSite site = properties.Feature.Parent as SPSite;
                    DeleteExistingJob(JobName, parentWebApp);
                    CreateJob(parentWebApp);
                });
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
        private bool CreateJob(SPWebApplication site)
        {
            bool jobCreated = false;
            try
            {
                TimerJobDemo job = new TimerJobDemo(JobName, site);
                SPMinuteSchedule schedule = new SPMinuteSchedule();
                schedule.BeginSecond = 0;
                schedule.EndSecond = 59;
                schedule.Interval = 15;
                job.Schedule = schedule;

                job.Update();
            }
            catch (Exception)
            {
                return jobCreated;
            }
            return jobCreated;
        }
        public bool DeleteExistingJob(string jobName, SPWebApplication site)
        {
            bool jobDeleted = false;
            try
            {
                foreach (SPJobDefinition job in site.JobDefinitions)
                {
                    if (job.Name == jobName)
                    {
                        job.Delete();
                        jobDeleted = true;
                    }
                }
            }
            catch (Exception)
            {
                return jobDeleted;
            }
            return jobDeleted;
        }

        public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
        {

            lock (this)
            {
                try
                {
                    SPSecurity.RunWithElevatedPrivileges(delegate()
                    {
                        SPWebApplication parentWebApp = (SPWebApplication)properties.Feature.Parent;
                        DeleteExistingJob(JobName, parentWebApp);
                    });
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
        }
     
    }
}


anyone can please help me ?

Thursday 16 February 2017

Auto select file in Solution Explorer from its open tab in Visual Studio 2015(all)


Another option is to bind 'View.TrackActivityInSolutionExplorer' to a keyboard short-cut, which is the same as 'Tools-->Options-->Projects and Solutions-->Track Active Item in Solution Explorer'
If you activate the short-cut twice the file is selected in the solution explorer, and the tracking is disabled again.
Visual Studio 2013+
There is now a feature built in to the VS2013 solution explorer called Sync with Active Document. The icon is two arrows in the solution explorer, and has the hotkey Ctrl + [, S to show the current document in the solution explorer. Does not enable the automatic setting mentioned above, and only happens once.

Thursday 9 February 2017

Visual Studio 2015 keyboard shortcuts


Analyze

Navigate Backward
Shift+Alt+3
Navigate Forward
Shift+Alt+4

Architecture

New Code Map
Ctrl+\, Ctrl+O
New UMLor Layer Diagram
Ctrl+\, Ctrl+N

Architecture Context Menus

Add Node
Ins
Both Dependencies
B
Incoming Dependencies
I
Outgoing Dependencies
O
New Comment
Ctrl+Shift+K
Ctrl+E, C
Remove
Del
Rename
F2

Build

Build Solution
Ctrl+Shift+B
Cancel
Ctrl+Break
Compile
Ctrl+F7
Run Code Analysison Solution
Alt+F11

Class Diagram

Collapse
Num -
Expand
Num +

Class View Context Menus

Properties
Alt+Enter

Misc

Commit All Edits
Shift+Alt+U
Move Left Edgetotheleft
Ctrl+Shift+,
Move Left Edgetotheright
Ctrl+Shift+.
Move Right Edgetotheleft
Ctrl+Shift+Alt+,
Move Right Edgetotheright
Ctrl+Shift+Alt+.
TSql Editor Clone Query
Ctrl+Alt+N
TSql Editor Database Combo
Shift+Alt+PgDn
View File In Script Panel
Shift+Alt+PgDn

Debug

Apply Code Changes
Alt+F10
Attachto Process
Ctrl+Alt+P
Autos
Ctrl+Alt+V, A
Break All
Ctrl+Alt+Break
Breakat Function
Ctrl+B
Breakpoints
Ctrl+Alt+B
Call Stack
Ctrl+Alt+C
Debug Windows Phone Internet Explorer
Ctrl+Shift+P
Delete All Breakpoints
Ctrl+Shift+F9
Launch
Alt+F2
Stop Collection
Ctrl+Alt+F2
Disassembly
Ctrl+Alt+D
Enable Breakpoint
Ctrl+F9
Exceptions
Ctrl+Alt+E
Go To Previous Callor Intelli Trace Event
Ctrl+Shift+F11
Start Diagnostics
Alt+F5
Immediate
Ctrl+Alt+I
Intelli Trace Calls
Ctrl+Alt+Y, T
Intelli Trace Events
Ctrl+Alt+Y, F
Java Script Console
Ctrl+Alt+V, C
Locals
Ctrl+Alt+V, L
Process Combo
Ctrl+5
Stack Frame Combo
Ctrl+7
Thread Combo
Ctrl+6
Toggle Current Thread Flagged State
Ctrl+8
Toggle Flagged Threads
Ctrl+9
Memory1
Ctrl+Alt+M, 1
Memory2
Ctrl+Alt+M, 2
Memory3
Ctrl+Alt+M, 3
Memory4
Ctrl+Alt+M, 4
Modules
Ctrl+Alt+U
Parallel Stacks
Ctrl+Shift+D, S
Parallel Watch1
Ctrl+Shift+D, 1
Parallel Watch2
Ctrl+Shift+D, 2
Parallel Watch3
Ctrl+Shift+D, 3
Parallel Watch4
Ctrl+Shift+D, 4
Show
Ctrl+Shift+D, D
Processes
Ctrl+Alt+Z
Quick Watch
Shift+F9
Ctrl+Alt+Q
Refresh
F5
Refresh Windowsapp
Ctrl+Shift+R
Registers
Ctrl+Alt+G
Restart
Ctrl+Shift+F5
Run To Cursor
Ctrl+F10
Select Element
Ctrl+B
Set Next Statement
Ctrl+Shift+F10
Show All
Ctrl+Alt+V, D
Show Call Stackon Code Map
Ctrl+Shift+`
Show Layout
Ctrl+Shift+I
Show Next Statement
Alt+Num *
Start
F5
Start Windows Phone Application Analysis
Alt+F1
Start Without Debugging
Ctrl+F5
Step Into
F11
Step Into Current Process
Ctrl+Alt+F11
Step Into Specific
Shift+Alt+F11
Step Out
Shift+F11
Step Out Current Process
Ctrl+Shift+Alt+F11
Step Over
F10
Step Over Current Process
Ctrl+Alt+F10
Stop Debugging
Shift+F5
Stop Performance Analysis
Shift+Alt+F2
Tasks
Ctrl+Shift+D, K
Threads
Ctrl+Alt+H
Toggle Breakpoint
F9
Toggle Disassembly
Ctrl+F11
Watch1
Ctrl+Alt+W, 1
Watch2
Ctrl+Alt+W, 2
Watch3
Ctrl+Alt+W, 3
Watch4
Ctrl+Alt+W, 4

Debugger Context Menus

Delete
Alt+F9, D
Go To Disassembly
Alt+F9, A
Go To Source Code
Alt+F9, S

Design

Fit All
Ctrl+0
Refresh Page
Ctrl+R
Search CSSPI
Ctrl+Shift+;
Show Handles
F9
Toggle Interactive Mode
Ctrl+Alt+I
Zoom In
Ctrl+Alt+=
Zoom Out
Ctrl+Alt+-

Diff

Ignore Trim Whitespace
Ctrl+\, Ctrl+Space
Inline View
Ctrl+\, Ctrl+1
Left Only View
Ctrl+\, Ctrl+3
Next Difference
F8
Previous Difference
Shift+F8
Right Only View
Ctrl+\, Ctrl+4
Side By Side View
Ctrl+\, Ctrl+2
Switch Between Left And Right
Ctrl+\, Ctrl+Tab
Synchronize View Toggle
Ctrl+\, Ctrl+Down Arrow

Edit

Break Line
Enter
Char Left
Left Arrow
Char Left Extend
Shift+Left Arrow
Char Left Extend Column
Shift+Alt+Left Arrow
Char Right
Right Arrow
Char Right Extend
Shift+Right Arrow
Char Right Extend Column
Shift+Alt+Right Arrow
Char Transpose
Ctrl+T
Clear All
Ctrl+Alt+C
Clear Bookmarks
Ctrl+K, Ctrl+L
Collapse All Outlining
Ctrl+M, Ctrl+A
Collapse Current Region
Ctrl+M, Ctrl+S
Collapse Tag
Ctrl+M, Ctrl+T
Collapseto Definitions
Ctrl+M, Ctrl+O
Comment Selection
Ctrl+K, Ctrl+C
Complete Word
Ctrl+Space
Alt+Right Arrow
Ctrl+K, W
Ctrl+K, Ctrl+W
Copy
Ctrl+C
Ctrl+Ins
Copy Parameter Tip
Ctrl+Shift+Alt+C
Create Copyof Work Item
Shift+Alt+C
Cut
Ctrl+X
Shift+Del
Cycle Clipboard Ring
Ctrl+Shift+V
Ctrl+Shift+Ins
Decrease Filter Level
Alt+,
Delete
Del
Ctrl+Del
Shift+Del
Delete Backwards
Bkspce
Shift+Bkspce
Delete From Model
Shift+Del
Delete Horizontal White Space
Ctrl+K, Ctrl+\
Document End
Ctrl+End
End
Document End Extend
Ctrl+Shift+End
Shift+End
Document Start
Ctrl+Home
Home
Document Start Extend
Ctrl+Shift+Home
Shift+Home
Edit Cell
F2
Expand All Outlining
Ctrl+M, Ctrl+X
Expand Collapse Base Type List
Shift+Alt+B
Expand Current Region
Ctrl+M, Ctrl+E
Find
Ctrl+F
Find All References
Shift+F12
Findin Files
Ctrl+Shift+F
Find Next
F3
Find Next Selected
Ctrl+F3
Find Previous
Shift+F3
Find Previous Selected
Ctrl+Shift+F3
Format Document
Ctrl+K, Ctrl+D
Format Selection
Ctrl+K, Ctrl+F
Go To
Ctrl+G
Goto Brace
Ctrl+]
Goto Brace Extend
Ctrl+Shift+]
Go To Declaration
Ctrl+F12
Go To Definition
F12
Go To Find Combo
Ctrl+D
Go To Next Location
F8
Go To Prev Location
Shift+F8
Hide Selection
Ctrl+M, Ctrl+H
Increase Filter Level
Alt+.
Incremental Search
Ctrl+I
Indent
Shift+Alt+Right Arrow
Insert Snippet
Ctrl+K, Ctrl+X
Insert Tab
Tab
Line Cut
Ctrl+L
Line Delete
Ctrl+Shift+L
Line Down
Down Arrow
Line Down Extend
Shift+Down Arrow
Shift+Up Arrow
Line Down Extend Column
Shift+Alt+Down Arrow
Line End
End
Line End Extend
Shift+End
Line End Extend Column
Shift+Alt+End
Line Open Above
Ctrl+Enter
Line Open Below
Ctrl+Shift+Enter
Line Start
Home
Line Start Extend
Shift+Home
Line Start Extend Column
Shift+Alt+Home
Line Transpose
Shift+Alt+T
Line Up
Up Arrow
Line Up Extend
Shift+Up Arrow
Shift+Down Arrow
Line Up Extend Column
Shift+Alt+Up Arrow
List Members
Ctrl+J
Ctrl+K, L
Ctrl+K, Ctrl+L
Make Lowercase
Ctrl+U
Make Uppercase
Ctrl+Shift+U
Move Control Down
Ctrl+Down Arrow
Down Arrow
Move Control Down Grid
Down Arrow
Move Control Left
Ctrl+Left Arrow
Left Arrow
Move Control Left Grid
Left Arrow
Move Control Right
Ctrl+Right Arrow
Right Arrow
Move Control Right Grid
Right Arrow
Move Control Up
Ctrl+Up Arrow
Up Arrow
Move Control Up Grid
Up Arrow
Move Selected Lines Down
Alt+Down Arrow
Move Selected Lines Up
Alt+Up Arrow
Navigate To
Ctrl+,
Navigate To Lollipop
Shift+Alt+L
New Accelerator
Ins
New String
Ins
Next Bookmark
Ctrl+K, Ctrl+N
Next Bookmark In Folder
Ctrl+Shift+K, Ctrl+Shift+N
Next Highlighted Reference
Ctrl+Shift+Down Arrow
Next Key Typed
Ctrl+W
Open File
Ctrl+Shift+G
Outdent
Shift+Alt+Left Arrow
Overtype Mode
Ins
Page Down
PgDn
Page Down Extend
Shift+PgDn
Page Up
PgUp
Page Up Extend
Shift+PgUp
Parameter Info
Ctrl+Shift+Space
Ctrl+K, P
Ctrl+K, Ctrl+P
Paste
Ctrl+V
Shift+Ins
Paste Parameter Tip
Ctrl+Shift+Alt+P
Peek Backward
Ctrl+Alt+-
Peek Definition
Alt+F12
Peek Forward
Ctrl+Alt+=
Previous Bookmark
Ctrl+K, Ctrl+P
Previous Bookmark In Folder
Ctrl+Shift+K, Ctrl+Shift+P
Previous Highlighted Reference
Ctrl+Shift+Up Arrow
Quick Find Symbol
Shift+Alt+F12
Quick Info
Ctrl+K, Ctrl+I
Ctrl+K, I
Redo
Ctrl+Y
Ctrl+Shift+Z
Shift+Alt+Bkspce
Refresh Remote References
Ctrl+Shift+J
Refresh Work Item
F5
Remove
Del
Removefrom Diagram
Del
Remove Row
Ctrl+Del
Replace
Ctrl+H
Replacein Files
Ctrl+Shift+H
Reverse Incremental Search
Ctrl+Shift+I
Scroll Column Left
Ctrl+Left Arrow
Scroll Column Right
Ctrl+Right Arrow
Scroll Line Down
Ctrl+Down Arrow
Scroll Line Up
Ctrl+Up Arrow
Select All
Ctrl+A
Select Current Word
Ctrl+W
Selection Cancel
Esc
Select Next Control
Tab
Select Previous Control
Shift+Tab
Select To Last Go Back
Ctrl+=
Show Code Lens Menu
Alt+`
Show Tile Grid
Enter
Size Control Down
Ctrl+Shift+Down Arrow
Shift+Down Arrow
Size Control Down Grid
Shift+Down Arrow
Size Control Left
Ctrl+Shift+Left Arrow
Shift+Left Arrow
Size Control Left Grid
Shift+Left Arrow
Size Control Right
Ctrl+Shift+Right Arrow
Shift+Right Arrow
Size Control Right Grid
Shift+Right Arrow
Size Control Up
Ctrl+Shift+Up Arrow
Shift+Up Arrow
Size Control Up Grid
Shift+Up Arrow
Smart Break Line
Shift+Enter
Stop Hiding Current
Ctrl+M, Ctrl+U
Stop Outlining
Ctrl+M, Ctrl+P
Stop Search
Alt+F3, S
Surround With
Ctrl+K, Ctrl+S
Swap Anchor
Ctrl+K, Ctrl+A
Tab Left
Shift+Tab
Toggle All Outlining
Ctrl+M, Ctrl+L
Toggle Bookmark
Ctrl+K, Ctrl+K
Toggle Completion Mode
Ctrl+Alt+Space
Toggle Outlining Expansion
Ctrl+M, Ctrl+M
Toggle Task List Shortcut
Ctrl+K, Ctrl+H
Toggle Word Wrap
Ctrl+E, Ctrl+W
Uncomment Selection
Ctrl+K, Ctrl+U
Undo
Ctrl+Z
Alt+Bkspce
View Bottom
Ctrl+PgDn
View Bottom Extend
Ctrl+Shift+PgDn
View Top
Ctrl+PgUp
View Top Extend
Ctrl+Shift+PgUp
View White Space
Ctrl+R, Ctrl+W
Word Delete To End
Ctrl+Del
Word Delete To Start
Ctrl+Bkspce
Word Next
Ctrl+Right Arrow
Word Next Extend
Ctrl+Shift+Right Arrow
Word Next Extend Column
Ctrl+Shift+Alt+Right Arrow
Word Previous
Ctrl+Left Arrow
Word Previous Extend
Ctrl+Shift+Left Arrow
Word Previous Extend Column
Ctrl+Shift+Alt+Left Arrow
Word Transpose
Ctrl+Shift+T

Editor Context Menus

Add Comment
Ctrl+Shift+K
Breakpoint Editlabels
Alt+F9, L
Breakpoint Settings
Alt+F9, C
Show Item
Ctrl+`
Edit Local File
Ctrl+Shift+P
Execute
Ctrl+Alt+F5
Execute In Interactive
Alt+Enter
Execute Line In Interactive
Alt+'
Go To View
Ctrl+M, Ctrl+G
Toggle Header Code File
Ctrl+K, Ctrl+O
View Call Hierarchy
Ctrl+K, Ctrl+T
Ctrl+K, T

File

Exit
Alt+F4
New File
Ctrl+N
New Project
Ctrl+Shift+N
New Web Site
Shift+Alt+N
Open File
Ctrl+O
Open Project
Ctrl+Shift+O
Open Web Site
Shift+Alt+O
Print
Ctrl+P
Rename
F2
Save All
Ctrl+Shift+S
Save Selected Items
Ctrl+S
Viewin Browser
Ctrl+Shift+W

Format

Align Bottoms
Ctrl+Shift+Down Arrow
Align Centers
Shift+F9
Align Lefts
Ctrl+Shift+Left Arrow
Align Middles
F9
Align Rights
Ctrl+Shift+Right Arrow
Align Tops
Ctrl+Shift+Up Arrow
Bold
Ctrl+B
Button Bottom
Ctrl+B
Button Right
Ctrl+R
Center Horizontal
Ctrl+Shift+F9
Center Vertical
Ctrl+F9
Check Mnemonics
Ctrl+M
Convertto Hyperlink
Ctrl+L
Edit Text
F2
Insert Bookmark
Ctrl+Shift+L
Italic
Ctrl+I
Reset All
Ctrl+Shift+R
Sizeto Content
Shift+F7
Space Across
Alt+Right Arrow
Alt+Left Arrow
Space Down
Alt+Up Arrow
Alt+Down Arrow
Tab Order
Ctrl+D
Test Dialog
Ctrl+T
Toggle Guides
Ctrl+G
Underline
Ctrl+U

Graph View

Bottomto Top
Alt+Up Arrow
Leftto Right
Alt+Right Arrow
Rightto Left
Alt+Left Arrow
Topto Bottom
Alt+Down Arrow

Help

Addand Remove Help Content
Ctrl+Alt+F1
F1 Help
F1
View Help
Ctrl+F1
Window Help
Shift+F1

Image

Airbrush Tool
Ctrl+A
Brush Tool
Ctrl+B
Copyand Outline Selection
Ctrl+Shift+U
Draw Opaque
Ctrl+J
Ellipse Tool
Alt+P
Erase Tool
Ctrl+Shift+I
Filled Ellipse Tool
Ctrl+Shift+Alt+P
Filled Rectangle Tool
Ctrl+Shift+Alt+R
Filled Rounded Rectangle Tool
Ctrl+Shift+Alt+W
Fill Tool
Ctrl+F
Flip Horizontal
Ctrl+H
Flip Vertical
Shift+Alt+H
Larger Brush
Ctrl+=
Line Tool
Ctrl+L
Magnification Tool
Ctrl+M
Magnify
Ctrl+Shift+M
New Image Type
Ins
Next Color
Ctrl+]
Ctrl+Right Arrow
Next Right Color
Ctrl+Shift+]
Ctrl+Shift+Right Arrow
Outlined Ellipse Tool
Shift+Alt+P
Outlined Rectangle Tool
Shift+Alt+R
Outlined Rounded Rectangle Tool
Shift+Alt+W
Pencil Tool
Ctrl+I
Previous Color
Ctrl+[
Ctrl+Left Arrow
Previous Right Color
Ctrl+Shift+[
Ctrl+Shift+Left Arrow
Rectangle Selection Tool
Shift+Alt+S
Rectangle Tool
Alt+R
Rotate90 Degrees
Ctrl+Shift+H
Rounded Rectangle Tool
Alt+W
Show Grid
Ctrl+Alt+S
Show Tile Grid
Ctrl+Shift+Alt+S
Small Brush
Ctrl+.
Smaller Brush
Ctrl+-
Text Tool
Ctrl+T
Use Selectionas Brush
Ctrl+U
Zoom In
Ctrl+Shift+.
Ctrl+Up Arrow
Zoom Out
Ctrl+Shift+,
Ctrl+Down Arrow

Load Test

Jump To Counter Pane
Ctrl+R, Q

Microsoft Azure

Retry Mobile Service Script Operation
Ctrl+Num *, Ctrl+R
Show Mobile Service Script Error Details
Ctrl+Num *, Ctrl+D

Other Context Menus

Refresh Linked Browsers
Ctrl+Alt+Enter
Insert Column
Ins
Column
Ctrl+L
Cancel Interactive Evaluation
Ctrl+Break
Reset Interactive Session
Ctrl+Alt+R
Removefrom Workspace
Del
Go To Controller
Ctrl+M, Ctrl+G
Reload Schemas
Ctrl+Shift+J
Add New Diagram
Ins
Down
Alt+Down Arrow
Down5
Alt+PgDn
To Bottom
Alt+End
To Top
Alt+Home
Up
Alt+Up Arrow
Up5
Alt+PgUp
Rename
Ctrl+R, R
Removefrom Diagram
Shift+Del
Hide Methods Pane
Ctrl+1
Copy Referenceto Clipboard
Ctrl+C
Insert Delay Before
Ctrl+Alt+D
Locate All
Shift+Alt+L
Locatethe UIControl
Ctrl+Shift+L
Movecode
Ctrl+Alt+C
Splitintoanewmethod
Ctrl+Shift+T

Project

Add Content Page
Ctrl+M, Ctrl+C
Add Existing Item
Shift+Alt+A
Add New Item
Ctrl+Shift+A
Class Wizard
Ctrl+Shift+X
Override
Ctrl+Alt+Ins
Previewchanges
Alt+;, Alt+C
Publishselectedfiles
Alt+;, Alt+P
Replaceselectedfilesfromserver
Alt+;, Alt+R

Projectand Solution Context Menus

Move Down
Alt+Down Arrow
Move Up
Alt+Up Arrow

Query Designer

Cancel Retrieving Data
Ctrl+T
Criteria
Ctrl+2
Diagram
Ctrl+1
Execute SQL
Ctrl+R
Goto Row
Ctrl+G
Join Mode
Ctrl+Shift+J
Results
Ctrl+4
SQL
Ctrl+3

Refactor

Encapsulate Field
Ctrl+R, Ctrl+E
Extract Interface
Ctrl+R, Ctrl+I
Extract Method
Ctrl+R, Ctrl+M
Remove Parameters
Ctrl+R, Ctrl+V
Rename
Ctrl+R, Ctrl+R
Reorder Parameters
Ctrl+R, Ctrl+O

Resources

Audio
Ctrl+4
Files
Ctrl+5
Icons
Ctrl+3
Images
Ctrl+2
Other
Ctrl+6
Strings
Ctrl+1

Solution Explorer

Open Files Filter
Ctrl+[, O
Ctrl+[, Ctrl+O
Pending Changes Filter
Ctrl+[, P
Ctrl+[, Ctrl+P
Sync With Active Document
Ctrl+[, S
Ctrl+[, Ctrl+S

SQL

Execute With Debugger
Alt+F5
Expand Wildcards
Ctrl+R, E
Ctrl+R, Ctrl+E
Fullyqualify Names
Ctrl+R, Q
Ctrl+R, Ctrl+Q
Moveto Schema
Ctrl+R, M
Ctrl+R, Ctrl+M
Query Results New Row
Alt+End
Query Results Refresh
Shift+Alt+R
Query Results Stop
Alt+Break
Rename
Ctrl+R, R
F2
Ctrl+R, Ctrl+R
SSDTSchema Compare Compare
Shift+Alt+C
SSDTSchema Compare Generate Script
Shift+Alt+G
SSDTSchema Compare Next Change
Shift+Alt+.
SSDTSchema Compare Previous Change
Shift+Alt+,
SSDTSchema Compare Stop
Alt+Break
SSDTSchema Compare Write Updates
Shift+Alt+U
TSql Editor Cancel Query
Alt+Break
TSql Editor Execute Query
Ctrl+Shift+E
TSql Editor Results As File
Ctrl+D, F
TSql Editor Results As Grid
Ctrl+D, G
TSql Editor Results As Text
Ctrl+D, T
TSql Editor Show Estimated Plan
Ctrl+D, E
TSql Editor Toggle Execution Plan
Ctrl+D, A
TSql Editor Toggle Results Pane
Ctrl+D, R

Table

Columntothe Left
Ctrl+Alt+Left Arrow
Columntothe Right
Ctrl+Alt+Right Arrow
Row Above
Ctrl+Alt+Up Arrow
Row Below
Ctrl+Alt+Down Arrow

Team

Go To Git Active Repositories
Ctrl+0, Ctrl+E
Ctrl+0, E
Go To Git Changes
Ctrl+0, Ctrl+G
Ctrl+0, G
Go To Git Synchronization
Ctrl+0, Ctrl+Y
Ctrl+0, Y
Goto Next Work Item
Shift+Alt+N
Goto Previous Work Item
Shift+Alt+P
New Linked Work Item
Shift+Alt+L
Refresh
F5
Team Explorer Search
Ctrl+'

Team Foundation Context Menus

Tfs Annotate Move Next Region
Alt+PgDn
Tfs Annotate Move Previous Region
Alt+PgUp
Go To Builds
Ctrl+0, Ctrl+B
Ctrl+0, B
Go To Connect
Ctrl+0, Ctrl+C
Ctrl+0, C
Go To Documents
Ctrl+0, Ctrl+D
Ctrl+0, D
Go To Home
Ctrl+0, Ctrl+H
Ctrl+0, H
Go To My Work
Ctrl+0, Ctrl+M
Ctrl+0, M
Go To Pending Changes
Ctrl+0, Ctrl+P
Ctrl+0, P
Go To Reports
Ctrl+0, Ctrl+R
Ctrl+0, R
Go To Settings
Ctrl+0, Ctrl+S
Ctrl+0, S
Go To Team Explorer Navigation
Alt+Home
Go To Team Explorer Next Section Content
Alt+Down Arrow
Go To Team Explorer Page Content
Alt+0
Go To Team Explorer Previous Section Content
Alt+Up Arrow
Go To Team Explorer Section1 Content
Alt+1
Go To Team Explorer Section2 Content
Alt+2
Go To Team Explorer Section3 Content
Alt+3
Go To Team Explorer Section4 Content
Alt+4
Go To Team Explorer Section5 Content
Alt+5
Go To Team Explorer Section6 Content
Alt+6
Go To Team Explorer Section7 Content
Alt+7
Go To Team Explorer Section8 Content
Alt+8
Go To Team Explorer Section9 Content
Alt+9
Go To Web Access
Ctrl+0, Ctrl+A
Ctrl+0, A
Go To Work Items
Ctrl+0, Ctrl+W
Ctrl+0, W
Team Explorer Navigate Backward
Alt+Left Arrow
Team Explorer Navigate Forward
Alt+Right Arrow
Set Focuson Left Window
Alt+1
Set Focuson Result Window
Alt+2
Set Focuson Right Window
Alt+3
Tfs Context My Work Page Create Copy WI
Shift+Alt+C
Tfs Context My Work Page New Linked WI
Shift+Alt+L

Test

Use Coded UITest Builder
Ctrl+\, Ctrl+C
Use Existing Action Recording
Ctrl+\, Ctrl+A

Test Explorer

Debug All Tests
Ctrl+R, Ctrl+A
Debug All Tests In Context
Ctrl+R, Ctrl+T
Open Test
F12
Repeat Last Run
Ctrl+R, L
Run All Tests
Ctrl+R, A
Run All Tests In Context
Ctrl+R, T

Tools

Code Snippets Manager
Ctrl+K, Ctrl+B
Force GC
Ctrl+Shift+Alt+F12, Ctrl+Shift+Alt+F12
Go To Command Line
Ctrl+/

View

All Windows
Shift+Alt+M
NETNonvisual Controls
Ctrl+Shift+N
Backward
Alt+Left Arrow
Bookmark Window
Ctrl+K, Ctrl+W
Browse Next
Ctrl+Shift+1
Browse Previous
Ctrl+Shift+2
Call Hierarchy
Ctrl+Alt+K
Class View
Ctrl+Shift+C
Class View Go To Search Combo
Ctrl+K, Ctrl+V
Code Definition Window
Ctrl+\, D
Ctrl+\, Ctrl+D
Command Window
Ctrl+Alt+A
Data Sources
Shift+Alt+D
Document Outline
Ctrl+Alt+T
Edit Label
F2
Edit Master
Ctrl+M, Ctrl+M
Entity Data Model Browser
Ctrl+1
Entity Data Model Mapping Details
Ctrl+2
Error List
Ctrl+\, E
Ctrl+\, Ctrl+E
F# Interactive
Ctrl+Alt+F
Find Symbol Results
Ctrl+Alt+F12
Forward
Alt+Right Arrow
Forward Browse Context
Ctrl+Shift+7
Full Screen
Shift+Alt+Enter
Navigate Backward
Ctrl+-
Navigate Forward
Ctrl+Shift+-
Next Error
Ctrl+Shift+F12
Next View
Ctrl+PgDn
Notifications
Ctrl+W, N
Ctrl+W, Ctrl+N
Object Browser
Ctrl+Alt+J
Object Browser Go To Search Combo
Ctrl+K, Ctrl+R
Output
Ctrl+Alt+O
Pop Browse Context
Ctrl+Shift+8
Properties Window
F4
Property Pages
Shift+F4
Quick Actions
Ctrl+.
Refresh
F5
Resource View
Ctrl+Shift+E
Server Explorer
Ctrl+Alt+S
Show Smart Tag
Shift+Alt+F10
Ctrl+.
Solution Explorer
Ctrl+Alt+L
SQLServer Object Explorer
Ctrl+\, Ctrl+S
Synchronize Views
Ctrl+Shift+Y
Task List
Ctrl+\, T
Ctrl+\, Ctrl+T
Tfs Team Explorer
Ctrl+\, Ctrl+M
Toolbox
Ctrl+Alt+X
UMLModel Explorer
Ctrl+\, Ctrl+U
View Code
Enter
F7
View Designer
Shift+F7
View Markup
Shift+F7
Web Browser
Ctrl+Alt+R
Zoom In
Ctrl+Shift+.
Zoom Out
Ctrl+Shift+,

Window

Activate Document Window
Esc
Activate Quick Launch
Ctrl+Q
Activate Quick Launch Previous Category
Ctrl+Shift+Q
Activate Solution Explorer Search
Ctrl+;
Activate Window Search
Alt+`
Add Tabto Selection
Ctrl+Shift+Alt+Space
Apply Window Layout1
Ctrl+Alt+1
Apply Window Layout10
Ctrl+Alt+0
Apply Window Layout2
Ctrl+Alt+2
Apply Window Layout3
Ctrl+Alt+3
Apply Window Layout4
Ctrl+Alt+4
Apply Window Layout5
Ctrl+Alt+5
Apply Window Layout6
Ctrl+Alt+6
Apply Window Layout7
Ctrl+Alt+7
Apply Window Layout8
Ctrl+Alt+8
Apply Window Layout9
Ctrl+Alt+9
Close Document Window
Ctrl+F4
Close Tool Window
Shift+Esc
Keep Tab Open
Ctrl+Alt+Home
Moveto Navigation Bar
Ctrl+F2
Next Document Window
Ctrl+F6
Next Document Window Nav
Ctrl+Tab
Next Pane
Alt+F6
Next Split Pane
F6
Next Tab
Ctrl+Alt+PgDn
Ctrl+PgDn
Next Taband Addto Selection
Ctrl+Shift+Alt+PgDn
Next Tool Window Nav
Alt+F7
Previous Document Window
Ctrl+Shift+F6
Previous Document Window Nav
Ctrl+Shift+Tab
Previous Pane
Shift+Alt+F6
Previous Split Pane
Shift+F6
Previous Tab
Ctrl+Alt+PgUp
Ctrl+PgUp
Previous Taband Addto Selection
Ctrl+Shift+Alt+PgUp
Previous Tool Window Nav
Shift+Alt+F7
Show Dock Menu
Alt+-
Show Ez MDIFile List
Ctrl+Alt+Down Arrow
Toggle
Shift+Alt+V

Workflow Designer

Collapse
Ctrl+E, Ctrl+C
Ctrl+E, C
Collapse All
Ctrl+E, Ctrl+Y
Ctrl+E, Y
Connect Nodes
Ctrl+E, Ctrl+F
Ctrl+E, F
Create Variable
Ctrl+E, Ctrl+N
Ctrl+E, N
Expand All
Ctrl+E, Ctrl+X
Ctrl+E, X
Expand In Place
Ctrl+E, Ctrl+E
Ctrl+E, E
Go To Parent
Ctrl+E, Ctrl+P
Ctrl+E, P
Move Focus
Ctrl+E, Ctrl+M
Ctrl+E, M
Navigate Through Designer
Ctrl+Alt+F6
Restore
Ctrl+E, Ctrl+R
Ctrl+E, R
Show Hide Argument Designer
Ctrl+E, Ctrl+A
Ctrl+E, A
Show Hide Imports Designer
Ctrl+E, Ctrl+I
Ctrl+E, I
Show Hide Overview Map
Ctrl+E, Ctrl+O
Ctrl+E, O
Show Hide Variable Designer
Ctrl+E, Ctrl+V
Ctrl+E, V
Toggle Selection
Ctrl+E, Ctrl+S
Ctrl+E, S
Zoom In
Ctrl+Num +
Zoom Out
Ctrl+Num -

XML

Start XSLTDebugging
Alt+F5
Start XSLTWithout Debugging
Ctrl+Alt+F5

Xsd Designer

Show Content Model View
Ctrl+2
Show Graph View
Ctrl+3
Show Start View
Ctrl+1


Ref URL : http://visualstudioshortcuts.com/2015/