Data Loading...
Visual Studio 2008, 2010, 2011, 2012 Keyboard Shortcuts Keys Aut h o r : S h aile ndra Ch auh an U pdat e d On : 2 3 S e p 2 0 16 Total Views : 31,848
S
hortcut keys play an important role to increase the output. Developers work at least 6 to 8 hours on daily basis on Visual Studio. If the developer knows the shortcut keys, he can keep away from using of mouse and absolutely it will
enhance productivity and reduce headache to use of mouse again and again. I am sharing some interesting and useful shortcut keys to work with Visual Studio. For visual studio top shortcuts refer the article Top 10 Visual Studio Keyboard Shorcuts ﴾http://www.dotnettricks.com/learn/visualstudio/top‐10‐visual‐studio‐keyboard‐shorcuts﴿.
General Shortcut Keys Shortcut
Description
Ctrl‐X or Shift‐
Cuts entire line or Cuts the currently selected item to the clipboard
Delete or Ctrl‐L Ctrl‐Del
Delete next "word"
Ctrl‐C or Ctrl‐Insert Copies the currently selected item to the clipboard Ctrl‐V or Shift‐
Pastes the item from the clipboard at the cursor location
Insert Ctrl‐Z or Alt‐
Undo the previous editing action
Backspace Ctrl‐Space
To see intelligence dialog
Ctrl‐Y or Ctrl‐Shift‐ Redo the previous undo action Z Ctrl‐S
Saves the current selected file
Ctrl‐Shift‐S
Saves all files and projects
Ctrl‐P
Displays the Print dialog
F7
Switches from the design view to the code view in the editor
Shift‐F7
Switches from the code view to the design view in the editor
Shift‐F8 or F8
Navigate to compile time errors
Alt‐Shift‐A
Add Existing Item﴾file﴿ to selected project
Ctrl‐Shift‐A
Add New Item﴾file﴿ to selected project
Shift‐F9
Display the selected item quick output means contains value while debugging
F12
Moves the cursor to the selected method, variable, class definition.
Shift‐F12
Finds the reference to the selected method, variable, class or the item under the cursor
Ctrl‐}
Match curly braces, brackets or compiler directives
Ctrl‐Shift‐}
Select text between matched braces, brackets or compiler directives
Text manipulation Shortcut
Description
Tab
Indents the currently selected line or lines by one tab stop. If there is no selection, this inserts a tab stop
Tab‐Tab
Complete the syntax of an item. Example‐ Write for and now press Tab‐Tab, then for loop syntax will be automatically completed. Similarly it works for property, index, class syntax.
Shift‐Tab
Moves current line or selected lines one tab stop to the left
Backspace or Shift‐ Deletes one character to the left of the cursor Backspace Ctrl‐K, Ctrl‐C
Marks the current line or selected lines of code as a comment, using the correct comment syntax for the programming language
Ctrl‐K, Ctrl‐U
Removes the comment syntax from the current line or currently selected lines of code
Ctrl‐K, Ctrl‐D
Do proper alignment of all the code of design view and code view
Ctrl‐T or Shift‐
Swaps the characters on either side of the cursor. ﴾For example, AC|BD becomes AB|CD.﴿ Available only
Enter
in text editors
Ctrl‐U
Changes the selected text to lowercase characters
Ctrl‐Shift‐U
Changes the selected text to uppercase characters
Ctrl‐Shift‐Right
Select the entire word with space from start to end
Arrow
Ctrl‐Right Arrow
Move the cursor in forward direction word by word
Shift‐End
Select the entire line from start to end
Shift‐Home
Select the entire line from end to start
Shift‐Alt‐Arrows or Column wise text selection for text manipulation Alt‐Mouse Ctrl‐Delete
Deletes the word to the right of the cursor
Ctrl‐Backspace
Deletes the word to the left of the cursor
Ctrl‐G
Jump to line number or go to line
Project related Shortcut
Description
Ctrl‐Shift‐B
Builds the solution
Ctrl‐N
Displays the New File dialog. Note: files created this way are not associated with a project. Use Ctrl‐ Shift‐A to add a new file in a project
Ctrl‐Shift‐N
Displays the New Project dialog
Ctrl‐O
Displays the Open File dialog
Ctrl‐Shift‐O
Displays the Open Project dialog
Ctrl‐M‐O
Collapse all the methods, classes, regions in the current code behind or class file
Ctrl‐M‐P or Ctrl‐
Expands all the methods, classes, regions in the current code behind or class file
M‐L Ctrl‐F
Displays the Find dialog
Ctrl‐H
Displays the Replace dialog
Ctrl‐Shift‐F
Find the reference of selected item into entire solution.
Ctrl‐Tab
Move from one opened file to another opened file in visual studio.
F9
Sets or removes a breakpoint at the current line
Ctrl‐F9
Enables or disables the breakpoint on the current line of code. The line must already have a breakpoint for this to work
F5
Runs the code with invoking the debugger.
Ctrl‐F5
Runs the code without invoking the debugger.
F4 or Alt‐Enter
Displays the Properties window, which lists the design‐time properties and events for the currently selected item
Ctrl‐Alt‐S
Displays the Server Explorer window, which allows you to view and manipulate database servers, event logs, message queues, web services, and many other operating system services
Ctrl‐Alt‐L
Displays the Solution Explorer, which lists the projects and files in the current solution
Ctrl‐Alt‐X
Displays the Toolbox, which contains controls and other items that can be dragged into editor and designer windows
Ctrl‐Alt‐I
Displays the Immediate window, where you can find the controls or variables values or can do data manipulation during debugging
Visual Studio Debug VS Release mode Aut h o r : S h aile ndra Ch auh an U pdat e d On : 2 4 S e p 2 0 16 Total Views : 22,431
W
hen we want to deploy our web application to live/local server, then we have two options for making built – Release mode and Debug mode. Both the modes have own importance and characteristics. The details about Release mode
and Debug mode are as:
Debug Mode Developer use debug mode for debugging the web application on live/local server. Debug mode allow developers to break the execution of program using interrupt 3 and step through the code. Debug mode has below features:
01. Less optimized code 02. Some additional instructions are added to enable the developer to set a breakpoint on every source code line. 03. More memory is used by the source code at runtime. 04. Scripts & images downloaded by webresource.axd are not cached. 05. It has big size, and runs slower. Release Mode Developer use release mode for final deployment of source code on live server. Release mode dlls contain optimized code and it is for customers. Release mode has below features:
01. More optimized code 02. Some additional instructions are removed and developer can’t set a breakpoint on every source code line. 03. Less memory is used by the source code at runtime. 04. Scripts & images downloaded by webresource.axd are cached. 05. It has small size, and runs fast.
Note
There is no difference in functionality of a debug dll and a release dll. usually, when we compile code in debug mode, we have a corresponding .pdb ﴾program database﴿ file. This .pdb file contains information that enables the debugger to map the generated IL ﴾intermediate language﴿ to source code line number. It also contains the names of local variables in the source code.
Set Compilation Mode in Visual Studio We can set the compile mode in visual studio as shown in below fig.
What do you think? In this article I try to explain, release mode advantage over debug mode. I hope after reading this article you will be able to use this trick in your code. I would like to have feedback from my blog readers. Please post your feedback, question, or comments about this article.
Top 10 Visual Studio Keyboard Shorcuts Aut h o r : S h aile ndra Ch auh an U pdat e d On : 2 4 S e p 2 0 16 Total Views : 15,467 Support : Visual Studio 2008, 2010 & 2012
P
laying with keyboard shortcuts is very interesting and reduce the head‐ache of using mouse again and again while programming with visual studio IDE. Actually, keyboard shortcuts also enhance your productivity and make your
programming life easy and convenient. So, I decided to share a list of top 10 visual studio keyboard shortcuts that's are amazing and very helpful. For more shortcuts refer the article Visual Studio 2008, 2010, 2011, 2012 Keyboard Shortcuts Keys ﴾http://www.dotnettricks.com/learn/visualstudio/visual‐studio‐2008‐2010‐2011‐2012‐keyboard‐shortcuts‐keys﴿.
01. F5 & CtrlF5 F5 is used to start your project in debug mode and Ctrl‐F5 is used to start your project without debug mode.
02. F7 & ShiftF7 F7 is used to show code view of your webpage.
Shift‐F7 is used to show design view of your webpage.
03. F6 / ShiftF6 / CtrlShiftB All of the above shortcuts are used to build the project or solutions.
04. CtrlShiftA & AltShiftA Ctrl‐Shift‐A is used to add new item to your project.
Alt‐Shift‐A is used to add existing item to your project.
05. CtrlK + CtrlC & CtrlK + CtrlU
Ctrl‐K + Ctrl‐C is used to do comment a selected block of code.
Ctrl‐K + Ctrl‐U is used to do uncomment a selected block of code.
06. CtrlM + CtrlO & CtrlM + CtrlP Ctrl‐M + Ctrl‐O is used to collapse all code to definitions.
Ctrl‐M + Ctrl‐P is used to expand all code.
07. CtrlK + CtrlS & AltShiftArrow(Right,Left,Bottom,Top) Ctrl‐K + Ctrl‐S is used to surrounded a block of code to an specific block or control.
Alt‐Shift‐Arrow﴾Right,Left,Bottom,Top﴿ are used to copy, paste, write vertically as shown in fig.
08. Ctrl(+) + Ctrl. & F12 Ctrl‐﴾+﴿ + Ctrl‐. is used to display smarttag under the red line that provides the options for fixing the code problem.
F12 is used to navigate to the definition of an instance, variable, class etc.
09. CtrlShiftF, CtrlF & CtrlH Ctrl‐Shift‐F is used to find all the ocuurance of a string with in entire solution and display find result window as shown below.
Ctrl‐F is used to find a string in the current document, project and all open documents one by one. Ctrl‐H is used to replace a string by a new string in current document, project and entire solution as you want to replace.
10. F4 & CtrlAltL F4 is used to show property window.
Ctrl‐Alt‐L is used to show solution explorer.
What do you think? I hope you will enjoy these tricks while programming with Visual Studio IDE. I would like to have feedback from my blog readers. Your valuable feedback, question, or comments about this article are always welcome.
Download Microsoft Visual Studio Express Aut h o r : S h aile ndra Ch auh an U pdat e d On : 2 4 Jun 2 0 14 Total Views : 10,993
M
icrosoft Visual Studio Express products are powerful and reliable free development IDE that provide a free development environment to develop applications for the latest platforms. The Express edition is free and ideal for
learning, developing, powering desktop, web & small server applications. Microsoft Visual Studio Express products download link: Visual Studio Express Products Download ﴾http://www.visualstudio.com/en‐us/products/visual‐studio‐express‐vs.aspx﴿
Visual Studio express downloads Visual Studio Express products are available at no charge and may be used for commercial, production usage subject to the license terms provided with each product. For example, you can use Express for Windows to create apps that you can then submit for sale in the Windows Store.
01. Express 2013 for Web Visual Studio Express for Web has the tools to create standards‐based, responsive websites, web APIs, or real‐time online experiences using ASP.NET. Publish your web application directly to Windows Azure from the IDE. Create web services consumed by connected devices.This includes the ASP.NET editors for HTML5, CSS3, JavaScript, etc. Visual Studio 2013 Express for Web ‐ Online Installer ﴾http://download.microsoft.com/download/B/B/2/BB2AB17F‐7BF1‐ 477B‐8BD5‐488C843F122B/vns_full.exe﴿ Visual
Studio
2013
Express
for
Web
‐
ISO﴾disconnected
installer﴿
﴾http://download.microsoft.com/download/B/B/2/BB2AB17F‐7BF1‐477B‐8BD5‐ 488C843F122B/VS2013_RTM_WebExp_ENU.iso﴿
02. Express 2013 for Windows (Desktop) Visual Studio Express for Windows Desktop lets you take full advantage of Windows with XAML designers, a productive IDE, and a variety of programming languages including C#, Visual Basic, and C++. Choose between Windows Presentation Foundation ﴾WPF﴿, Windows Forms, and Win32, to target the Windows desktop with the right technology for your application and your skills Visual
Studio
2013
Express
for
Windows
﴾desktop﴿
‐
Online
Installer
﴾http://download.microsoft.com/download/7/2/E/72E0F986‐D247‐4289‐B9DC‐C4FB07374894/wdexpress_full.exe﴿
Visual
Studio
2013
Express
for
Windows
﴾desktop﴿
‐
ISO﴾disconnected
installer﴿
﴾http://download.microsoft.com/download/7/2/E/72E0F986‐D247‐4289‐B9DC‐ C4FB07374894/VS2013_RTM_DskExp_ENU.iso﴿
03. Express 2013 for Windows (Store) You can use the tools in Visual Studio Express 2013 for Windows to create innovative and compelling Windows Phone and Windows Store apps on Windows 8.1 & 8.0. Visual
Studio
2013
Express
for
Windows
﴾Store﴿
‐
Online
Installer
﴾http://download.microsoft.com/download/9/0/A/90AC819B‐0D4C‐456A‐9B30‐A328F15F0864/winexpress_full.exe﴿ Visual
Studio
2013
Express
for
Windows
﴾Store﴿
‐
ISO﴾disconnected
installer﴿
﴾http://download.microsoft.com/download/9/0/A/90AC819B‐0D4C‐456A‐9B30‐ A328F15F0864/vs2013.2_winexp_ret_ENU.iso﴿
04. Team Foundation Server 2013 Express Collaborate, manage your repositories and automate build processes. Your team might be small and just getting started, but with Team Foundation Server Express, even the smallest team can go big. Up to five developers can access powerful application lifecycle management tools, collaborating and controlling the rise of your application, just like in any large organization. Visual
Studio
Team
Foundation
Server
Express
2013
‐
Online
Installer
﴾http://download.microsoft.com/download/E/A/A/EAA2683F‐5B77‐4329‐B7B4‐A4145842BBAD/TFS2/tfs_express.exe﴿ Visual
Studio
Team
Foundation
Server
Express
2013
‐
ISO﴾disconnected
installer﴿
﴾http://download.microsoft.com/download/E/A/A/EAA2683F‐5B77‐4329‐B7B4‐ A4145842BBAD/TFS2/vs2013.2_tfs_exp_enu.iso﴿
What do you think? I hope you will enjoy the Visual Studio Express products. I would like to have feedback from my blog readers. Your valuable feedback, question, or comments about this article are always welcome.
Node.js development with Visual Studio Aut h o r : S h aile ndra Ch auh an U pdat e d On : 2 6 Mar 2 0 15 Total Views : 10,058
I
t's a great news for Visual Studio lovers that they can do Node.js development with their favorite IDE. This can be possible with the help of open‐source plug‐in NTVS supported by Microsoft and the community. NTVS is constantly
working to improve the Node.js experience in Visual Studio. You can download it for Visual Studio 2012, 2013 from the link NTVS 1.0 for VS ﴾https://nodejstools.codeplex.com/releases/view/612573﴿ NTVS supports editing, IntelliSense, cross platform and remote debugging ﴾while running the server on Windows/MacOS/Linux﴿, profiling, npm integration, TypeScript, Interactive Window ﴾REPL﴿, Unit Testing and much more. It also provides visual studio project templates to start development with visual studio quickly and create and deploy websites to Microsoft Azure App Service ﴾Azure Websites﴿ or Cloud Services.
Node.js Project Template
Node.js Intellisense
Node.js Cloud integration with Visual Studio
What do you think? I hope you will enjoy this plug‐in while node.js development with visual studio. I would like to have feedback from my blog readers. Your valuable feedback, question, or comments about this article are always welcome.