IT Community - Software Programming, Web Development and Technical Support

Visual Studio Tips & Tricks

This is a discussion on Visual Studio Tips & Tricks within the C# Programming forums, part of the Software Development category; Hey, Visual Studio 2005 is the leading developer tool on the market, and I would like to share with you ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C# Programming

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 08-24-2007, 02:53 AM
SaravananJ SaravananJ is offline
D-Web Programmer
 
Join Date: Aug 2007
Posts: 79
SaravananJ is on a distinguished road
Thumbs up Visual Studio Tips & Tricks

Hey,

Visual Studio 2005 is the leading developer tool on the market, and I would like to share with you some tips and tricks that will make this great tool even more powerful. Getting familiar with a tool is crucial to getting the most out of the tool, and development tools and IDEs are no different. But with the many new technologies such as C# 2.0, ASP .NET 2.0, WWF, WPF,and WCF,I hope you will learn a couple of useful things that will make your life inside Visual Studio more pleasant and productive.


keyboard shortcuts :

Ever wished that you never have to take your hands off the keyboard when you are doing your development inside Visual Studio? If you are a power user, you will certainly enjoy the using keyboard shortcuts to perform various operations more quickly. I am sure most of you are already familiar with some of them: F5 for Debug.Start, F10 for Debug.StepOver, F4 for View.Properties. There are several other very useful keyboard shortcuts that are less known. I have included some of my favorites below.


F7 :- Toggles between design and code views.

F9
:- Toggles breakpoint.

F12
:- Go to definition of a variable, object, or function.

Ctrl+Shift+7
Ctrl+Shift+8 :- Quickly navigate forward and backwards in the go to definition stack.

Shift+F12:- Find all references of a function or a variable.

Ctrl+M
, Ctrl+M
:- Expand and collapse code outlining in the editor.

Ctrl+K
, Ctrl+C
Ctrl+K, Ctrl+U :- Comment and uncomment line(s) of code, respectively.

Shift+Alt+Enter
:- Toggles between full screen mode and normal mode.

Ctrl+I
:- Incremental Search.
__________________
J.Saravanan

Last edited by SaravananJ : 08-24-2007 at 03:50 AM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 08-24-2007, 04:08 AM
rrrajesh84in rrrajesh84in is offline
D-Web Master
 
Join Date: Mar 2007
Posts: 365
rrrajesh84in is on a distinguished road
Default Re: Visual Studio Tips & Tricks

hi

HTML Editor Source View

Ctrl+Shift+. - View AutoCloseTagOverride

Shift+F7
- ViewViewDesigner

Ctrl+PgDn
- ViewNextView

Ctrl+PgUp
- WindowPreviousTab
__________________
.....................................
''''''
Rajesh''''''
Ants. . . . . . Like me
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 08-25-2007, 03:25 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 905
S.Vinothkumar is on a distinguished road
Cool Re: Visual Studio Tips & Tricks

Hi buddies,

Here is some Tool Window shortcut keys for .NET

CTRL + SHIFT + M - Tools.CommandWindowMarkMode

Places the Command window in a mode allowing for the selection of text within the window.

CTRL + SHIFT + C - View.ClassView

Displays the Class View window.

CTRL + ALT + A - View.CommandWindow

Displays the Command window, which allows you to type commands that manipulate the IDE.

CTRL + ALT + T - View.DocumentOutline

Displays the Document Outline window to view the flat or hierarchical outline of the current document.

CTRL + ALT + F - View.Favorites

Displays the Favorites window, which lists shortcuts to Web pages.

CTRL + ALT + O - View.Output

Displays the Output window to view status messages at run time.

F4 - View.PropertiesWindow

Displays the Properties window, which lists the design-time properties and events for the currently selected item.

SHIFT + F4 - View.PropertyPages

Displays the property pages for the item currently selected.

CTRL + SHIFT + E
- View.ResourceView

Displays the Resource View window.

CTRL + ALT + S - View.ServerExplorer

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 + R - View.ShowWebBrowser

Displays the Web browser window, which allows you to view pages on the Internet.

CTRL + ALT + L - View.SolutionExplorer

Displays Solution Explorer, which lists the projects and files in the current solution.

CTRL + ALT + K - View.TaskList

Displays the Task List window where you customize, categorize, and manage tasks, comments, shortcuts, warnings and error messages.

CTRL + ALT + X - View.Toolbox

Displays the Toolbox, which contains controls and other items that can be included or used with your code.

Cheers....
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 08-27-2007, 11:19 PM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 905
S.Vinothkumar is on a distinguished road
Wink Re: Visual Studio Tips & Tricks

Hi Friends,

Here is some project shortcut keys ....

CTRL + SHIFT + B - Build.BuildSolution

Builds the solution.

CTRL + F7 - Build.Compile

Creates an object file containing machine code, linker directives, sections, external references, and function/data names for the selected file.

SHIFT + ALT + A - File.AddExistingItem

Displays the Add Existing Item dialog box, which allows you to add an existing file to the current project.

CTRL + SHIFT + A - File.AddNewItem

Displays the Add New Item dialog box, which allows you to add a new file to the current project.
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 08-27-2007, 11:31 PM
SaravananJ SaravananJ is offline
D-Web Programmer
 
Join Date: Aug 2007
Posts: 79
SaravananJ is on a distinguished road
Default Re: Visual Studio Tips & Tricks

Hey,

Here i listed Keyboard shortcuts for XML Editor Schema View

Ctrl+- - Will collapse the Schema Tag
Ctrl+= - Will Expand the Schema Tag

Here is the keyboard shortcuts for source editor

Ctrl+M,Ctrl+M - Will collapse the Code block, when you do the reverse
(again pressing the same Key-pairs) then it will get
expanded.

Thanks
__________________
J.Saravanan
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 08-28-2007, 07:36 AM
rrrajesh84in rrrajesh84in is offline
D-Web Master
 
Join Date: Mar 2007
Posts: 365
rrrajesh84in is on a distinguished road
Default Re: Visual Studio Tips & Tricks

Class Diagram

Num + ClassDiagram Expand

Shift+Alt+B Edit ExpandCollapseBaseTypeList

Ctrl+Del Edit Delete
Del Edit RemovefromDiagram
Enter View ViewCode
Shift+Alt+L Edit NavigateToLollipop
Num - ClassDiagram Collapse
__________________
.....................................
''''''
Rajesh''''''
Ants. . . . . . Like me
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 08-29-2007, 10:04 PM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 905
S.Vinothkumar is on a distinguished road
Wink Re: Visual Studio Tips & Tricks

Hi there,

Here is some other project shortcut keys....

CTRL + N - File.NewFile

Displays the New File dialog box where you can select a new file to add to the current project.

CTRL + SHIFT + N - File.NewProject

Displays the New Project dialog box where you can create projects and add them to the current solution.

CTRL + O - File.OpenFile

Displays the Open File dialog box where you can select an existing file to open.

CTRL + SHIFT + O - File.OpenProject

Displays the Open Project dialog box where you can add existing projects to your solution.

CTRL + ALT + INSERT - Project.Override

Allows you to override base class methods in a derived class. Available for C#.
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 08-29-2007, 11:18 PM
smani smani is offline
D-Web Programmer
 
Join Date: Aug 2007
Posts: 56
smani is on a distinguished road
Default Re: Visual Studio Tips & Tricks

hi
here i have some shortcuts:

CTRL+SHIFT+B--TO BULID SOLUTION

F5--TO RUN

SHIFT+F5--TO STOP RUNNING

SHIFT+F7--TOGGLES B/W DESIGN VIEW<--> CODE VIEW

IN ASPX PAGE


CTRL + F6
--TO MOVE FROM CODEBEHIND TO ASPX PAGE.

regards
Manivannan.s

Last edited by smani : 08-29-2007 at 11:22 PM.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 08-31-2007, 12:27 AM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 905
S.Vinothkumar is on a distinguished road
Wink Re: Visual Studio Tips & Tricks

Friendz,

Here is some Window management shortcut keys...

SHIFT + ALT + ENTER - View.FullScreen
Toggles Full Screen mode on and off.
CTRL + - - View.NavigateBackward
Goes back to the previous document or window in the navigation history.
CTRL + SHIFT + - - View.NavigateForward
Moves forward to the document or window next in the navigation history.
ESC - Window.ActivateDocumentWindow
Closes a menu or dialog box, cancels an operation in progress, or places focus in the current document window.
CTRL + F4 - Window.CloseDocumentWindow
Closes the current MDI child window.

Learn with my posts...
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 08-31-2007, 11:18 PM
S.Vinothkumar S.Vinothkumar is offline
D-Web Genius
 
Join Date: May 2007
Posts: 905
S.Vinothkumar is on a distinguished road
Wink Re: Visual Studio Tips & Tricks

Here some other window management short keys....

SHIFT + ESC - Window.CloseToolWindow
Closes the current tool window.
CTRL + F2 - Window.MoveToDropDownBar
Moves the cursor to the drop-down bar while the editor is in Code view.
CTRL + F6
CTRL + TAB - Window.NextDocumentWindow
Cycles through the MDI child windows one window at a time.
ALT + F6 - Window.NextPane
Moves to the next tool window.
F6 - Window.NextSplitPane
Moves to the next pane of a split pane view of a single document.
Learn with my posts...
__________________
S.VinothkumaR
Behind me is infinite power,
Before me is Endless Possibility,
Around me is Boundless Opportunity,
Why should I fear!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual C++ Tips & Tricks Karpagarajan C and C++ Programming 91 12-08-2009 09:43 PM
csproj is not supported by this version of Visual Studio 2008 arjkhanna Server Management 2 04-01-2009 02:01 AM
Installation of visual Studio 2005 failed at tfs setup JSureshkumar Server Management 1 10-17-2007 02:49 AM
any idea about Visual Studio 2008 JavaScript Intellisense? Archer ASP and ASP.NET Programming 1 07-25-2007 02:16 AM
Can I install VS .NET and the Visual Studio 6.0 installed on the same machine? oxygen ASP and ASP.NET Programming 1 07-20-2007 03:42 AM


All times are GMT -7. The time now is 01:21 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0