1 / 69

INF160 IS Development Environments AUBG, COS dept

INF160 IS Development Environments AUBG, COS dept. Lecture 06 Title: Dev Env: Visual Studio (Extract from Syllabus) Reference: www.microsoft.com/visualstudio. Lecture Contents:. Visual Studio – introduction Visual Studio – functionality Visual Studio – configuration.

sydnee
Download Presentation

INF160 IS Development Environments AUBG, COS dept

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. INF160 IS Development Environments AUBG, COS dept Lecture 06 Title: Dev Env: Visual Studio (Extract from Syllabus) Reference: www.microsoft.com/visualstudio

  2. Lecture Contents: • Visual Studio – introduction • Visual Studio – functionality • Visual Studio – configuration

  3. MS Visual Studio – introduction • Microsoft Visual Studio is used to develop • console and graphical user interface applications, • Windows Forms applications, • web sites, • web applications, and • web services in both native code together with managed code for all platforms supported by Microsoft Windows, including Windows Mobile, Windows CE, .NET Framework, .NET Compact Framework and Microsoft Silverlight

  4. Visual Studio – functionality • Visual Studio includes: • A code editor supporting • IntelliSense • Code snippets and • Code refactoring. • The integrated debugger works both • as a source-level debugger and • as a machine-level debugger. • Forms designer for building GUI applications, • Class designer, • And other SW tools

  5. Visual Studio – functionality • Visual Studio supports a variety of Programming languages. • Built-in languages include • C/C++ (via Visual C++), • VB.NET (via Visual Basic .NET), • Visual C# • Visual F# • Support for other languages such as M, Python, and Ruby among others is available via language services installed separately. It also supports XML/XSLT, HTML/XHTML, JavaScript and CSS.

  6. MS Visual Studio • How to Use & Configure?

  7. MS Visual StudioHow to Use & Configure • To start MS Visual Studio • Detailed information available in file CppAppD2010 Using Project Folders.pdf, page 1.

  8. MS Visual StudioHow to Use & Configure • Important note: To select a different window layout, • click Tools on the menu bar, click Import and Export Settings, select the Reset all settings radio button and then click the Next button. • Select the appropriate radio button in the Save Current Settings pane, click the Next button. • Click the preferred collection of settings (such as Visual C++ Development Settings), and then click the Finish button. • Click the Close button (.pdf, page 2).

  9. MS Visual StudioHow to Use & Configure • Setting the Appropriate Options • To set the appropriate options: (.pdf, page 3) • Tools > Options > Projects and Solutions

  10. MS Visual StudioHow to Use & Configure • Managing the variety of windows in the IDE • Usually, you will find it easier to work in the IDE if you either close or auto-hide the windows you are not currently using. • The easiest way to close an open window is to click the Close button on the window’s title bar. In most cases, the View menu provides an appropriate option for opening a closed window (.pdf, page 4).

  11. MS Visual StudioHow to Use & Configure • Managing the variety of windows in the IDE • Rather than closing a window, you also can auto-hide it. You auto-hide a window using the Auto Hide button (shown earlier in Figures D1 and D2) on the window’s title bar. The Auto Hide button is a toggle button: clicking it once activates it, and clicking it again deactivates it (.pdf, page 4).

  12. MS Visual StudioHow to Use & Configure • Creating a Console Application (.pdf, page 5) • Solution, Project, File • Drawer analogy: Figure D-4 • Illustration of a solution, project, and file • Drawer - Solution • Folder - Project • Document - File

  13. MS Visual StudioHow to Use & Configure • To create a C++ console application: • (.pdf, pages 6-8)

  14. MS Visual StudioHow to Use & Configure • Adding a New Source File to an Open Project • To add a new source file to an open project: (.pdf, page 9)

  15. MS Visual StudioHow to Use & Configure • Adding an Existing Source File to a Project • To add an existing source file to an open project: (.pdf, page 10)

  16. MS Visual StudioHow to Use & Configure • Entering C++ Program Instructions: • (.pdf, page 10)

  17. MS Visual StudioHow to Use & Configure • Running a C++ Program: (.pdf, page 12)

  18. MS Visual StudioHow to Use & Configure • Important Note: You can change the color of the Command Prompt window’s background and text to make the display clearer. • Right-click the Command Prompt window’s title bar and then click Properties. • Click the Colors tab. • Select the Screen Text radio button and then click the black square. • Select the Screen Background radio button and then click either the light gray square or the white square (.pdf, page 13)

  19. MS Visual StudioHow to Use & Configure • Important Note:. • You also can change the font used to display the text in the Command Prompt window. • Click the Font tab. Click Lucida Console in the list of fonts and then select the Bold fonts check box. Click 20 in the Size list box and then click the OK button. See Figure D-14: (.pdf, page 13)

  20. MS Visual StudioHow to Use & Configure • Important Note:. • You also can change the font size used to display the text in the Text Editor window. Click the bottom left corner of the Code Editor window, zoom combo box gets opened, you are free to select or to type preferred zoom percentage in the range 20%...400%.

  21. MS Visual StudioHow to Use & Configure • Displaying Line Numbers in the Editor Window (.pdf, page 14) • Tools >Options >Text Editor >All Languages >General

  22. MS Visual StudioHow to Use & Configure • Debugging a C++ program. (.pdf, page 15) • Tools > Options > Debugging

  23. MS Visual StudioHow to Use & Configure • Printing a C++ program (.pdf, page 17). • File > Page Setup … • File > Print …

  24. MS Visual StudioHow to Use & Configure • Closing the current solution (.pdf, page 18) • File > Close Solution

  25. MS Visual StudioHow to Use & Configure • Opening an existing solution. (.pdf, page 18) • From within IDE: • File > Open > Project/Solution… • From Windows Explorer: • Open project folder • Click file with extension .sln

  26. MS Visual Studio • How to Configure?

  27. Visual Studio – configurationB.Doyle, C#, App A, p993-1005 Extract

  28. Customizing the IDE • Default Start page

  29. Using menu: Tools > Options • 15 folders opened

  30. Using menu: Tools > Options • folder node: Environment, General

  31. Using menu: Tools > Options • folder node: Environment, Fonts and Colors

  32. Using menu: Tools > Options • folder node: Environment, Import&Export Settings

  33. Using menu: Tools > Options • folder node: Environment, Startup

  34. Using menu: Tools > Options • folder node: Projects and Solutions, General

  35. Using menu: Tools > Options • folder node: Projects and Solutions, General

  36. Using menu: Tools > Options • folder node: Projects and Solutions, Build & Run

  37. Using menu: Tools > Options • folder node: Text Editor,

  38. Using menu: Tools > Options • folder node: Text Editor,

  39. Using menu: Tools > Options • folder node: Text Editor, All Languages, Tabs

  40. Using menu: Tools > Options • folder node: Text Editor, C#, Intellisense • IntelliSense is Microsoft's implementation of autocompletion. • In addition to completing the symbol names the programmer is typing, IntelliSense serves as documentation and disambiguation for variable names, functions and methods using reflection • Autocomplete involves the program predicting a word or phrase that the user wants to type in without the user actually typing it in completely

  41. Using menu: Tools > Options • folder node: Text Editor, C#, Intellisense

  42. Using menu: Tools > Options • folder node: Debugging

  43. Using menu: Tools > Options • folder node: HTML Designer

  44. Using menu: Tools > Options • folder node: Windows Forms Designer

  45. Using menu: Tools > Customize • You can select which toolbars are displayed in the IDE • You can also specify which commands are to be included within each toolbar.

  46. Using menu: Tools > Customize .

  47. Using menu: Tools > Customize • Tab Toolbars

  48. Using menu: Tools > Customize • Tab Commands

  49. Code Editor ToolsB.Doyle, C#, App B, pp 1007-1017 • Extract

  50. Code Editor Tools • Code Snippets

More Related