Skip to main content
  • 136 Accesses

Abstract

Thus far, in working with code in the IDE’s Text Editor windows, I’ve made very few references to the extensibility object of Visual Studio.NET. I’ve done this for two reasons. First, I wanted to get quickly and simply into building some usable functionality in an add-in. Second, I wanted to demonstrate the use of some common methods that you can reuse most of the time for retrieving code from a code window, performing some operation on the code, and subsequently putting it back into the code window without having to constantly be concerned with the complex syntax of the extensibility object. I suspect that the library routines I’ve provided for retrieval and replacement of code in a window will work for you 90 percent of the time you want to work on code.

“What matters most in life is not so much how much time we have, but what

we do with the time we are given.”

—Author Unknown

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 49.95
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2002 Les Smith

About this chapter

Cite this chapter

Smith, L. (2002). Manipulating Code in Windows. In: Writing Add-ins for Visual Studio .NET. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-1101-3_5

Download citation

  • DOI: https://doi.org/10.1007/978-1-4302-1101-3_5

  • Publisher Name: Apress, Berkeley, CA

  • Print ISBN: 978-1-59059-026-3

  • Online ISBN: 978-1-4302-1101-3

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics