Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Python Development Using Python Tools For Visua...

Avatar for Will Sams Will Sams
October 20, 2012

Python Development Using Python Tools For Visual Studio

Avatar for Will Sams

Will Sams

October 20, 2012

Other Decks in Programming

Transcript

  1. Python Development Using Python Tools for Visual Studio Will Sams

    ASP .NET Developer (VB,C#) Tanger Factory Outlet Centers, Inc.
  2. About Me • Current day job is writing & maintaining

    applications in .NET. • Fairly new to Python. • “There should be one—and preferably only one— obvious way to do it.” • I like rice.
  3. Agenda • Editing Python in Visual Studio • Browsing Python

    in Visual Studio • Debugging Python in Visual Studio
  4. Visual Studio • Productivity – Source code editing, code completion,

    code refactoring, build automation, integrated debugger, etc. • Extensible – Development environment & projects. • Code Management – Intuitive management of source projects. • Eye Candy
  5. Python Tools For Visual Studio (PyTools) • Visual Studio is

    a Windows developer's best friend. • For a Python developer familiar with Visual Studio, PyTools is a Python developer's best friend.
  6. What Does Pytools / Visual Studio Provide? • Syntax Highlighting

    • Tool tips (hovering will provide docstrings or parameter tips) • Outlining support • Navigation Bar • Go To Definition (F12) • Find All References (Shift-F12)
  7. What Else Does Pytools / Visual Studio Provide? • Code

    Refactoring – Rename (Ctrl-R, Ctrl-R) – Extract method (Ctrl-R, Ctrl-M) • REPL window (Alt-I, Ctrl-E to move code to it) • Object browser (Ctrl-Alt-J) • Debugging Support (set breakpoints in left region, F5)
  8. Profiling Support • Unfortunately, “pay to play” as profiling is

    not supported in the free versions of Visual Studio (integrated shell and express editions).
  9. Getting Started • Visual Studio 2010 Shell (Integrated) – http://www.microsoft.com/en-

    us/download/details.aspx?id=115 • Python Tools For Visual Studio – http://pytools.codeplex.com/ • Python Tools Walk-Through – http://bit.ly/T3YfdQ