Tutorials Forums
     Tutorials Videos
        Sign Up Now For FREE

How To Use Microsoft Visual Studio

How To Use Microsoft Visual Studio

Get the latest code samples for Visual Studio. Here you'll find links to sample applications and code snippet

C# Tutorials ,  VB.NET Tutorials ,  WPF TutorialsWCF TutorialsWF TutorialsASP.NET TutorialsAJAX TutorialsCSS/HTML Tutorials

03
June
2010

How To Print Code in the Editor
4.0/5 rating (2 votes)

The integrated development environment (IDE) provides many of the familiar print features available from your operating system, along with a few features specific to Visual Studio. For example, you can include line numbers or omit collapsed regions in print outs, as well as include the file name and page numbers.

Print line numbers

The line numbers displayed in the Code Editor do not print by default. In addition, you can choose to print line numbers even if line numbers do not appear in the Code Editor.

To print line numbers

  1. On the File menu, click Print.

  2. In Print what, select Include line numbers.

  3. Click OK.

    Print Code in the Editor

03
June
2010

How To Display Line Numbers in the Editor
3.5/5 rating (2 votes)

Procedure

Line numbers are not added to your code; they are for reference only. For line numbers to print, you must select Include line numbers

To display line numbers in code

  1. On the Tools menu, select Options.

  2. In the Text Editor folder, choose the General options in the All Languages subfolder to set this option globally.

    —or—

    Choose the General options in the subfolder for the language in which you are programming.

  3. Under Display, select Line numbers.

    Display Line Numbers in the Editor

03
June
2010

How To Specify Settings for a Team
5.0/5 rating (2 votes)

When you are working in a group, it can be useful to have each developer using the exact same settings for certain areas of the integrated development environment (IDE), such as the editor. You can encourage this consistency by creating a .vssettings file for a subset of the available settings categories that all developers in your group can use. When applied, these team settings would not override any category not specified in the .vssettings file, allowing individual developers to keep customizations they have made to other areas of the IDE. For information about creating a .vssettings file, see How to: Share Settings Between Computers.

Visual Studio verifies that you are using the latest version of the group .vssettings file each time you start Visual Studio. Any changes to the .vssettings file are automatically applied.

To specify a .vssettings file for use across a group

  1. From the Tools menu, choose Options.

  2. In the Environment folder, choose Import and Export Settings.

  3. Select Use team settings file.

  4. Enter a UNC or local path, or click Browse to locate the group .vssettings file.

  5. Click OK to apply the settings.

03
June
2010

How To Share Settings Between Computers
5.0/5 rating (2 votes)

You can export settings for the editor, projects, debugging, fonts and colors, and other IDE areas to a file that you can import and use on another computer, such as your second development computer or a coworker's computer.

Export settings to a file

You can choose to export all or some of your current settings to a .vssettings file that you can use on a second computer or share with other developers.

Import and Export Settings

03
June
2010

How To Navigate Code and Text
4.5/5 rating (2 votes)

There are various ways to move through text or code in the Code Editor using the mouse and navigation keys:

  • Use the arrow keys to move one character at a time, or the arrow keys in combination with the CTRL key to move one word at a time. Arrow keys move one line at a time also.

  • Click a location with the mouse.

  • Use the scroll bars or scroll wheel on the mouse to move through the text.

  • Use the HOME, END, PAGEUP, and PAGEDOWN keys.

  • Use CTRL+PAGE UP and CTRL+PAGE DOWN to move the insertion point to the top or bottom of the window, respectively.

  • Use CTRL+UP ARROW and CTRL+DOWN ARROW to scroll the view without moving the insertion point.

  • Use the Navigate Backward button to move the insertion point to previous locations in the active document, and the Navigate Forward button to return to more recent locations.

Operations such as Incremental SearchGoto LineGoto DefinitionBeginning of DocumentEnd of DocumentPaste, and Insert File can move the insertion point a significant distance within the active document. The Navigate Backward and Navigate Forward buttons retain the last 20 locations of the insertion point.