Browse by Tags

Tagged Content List
  • Blog Post: Code Snippet: Ensuring a file is in a project

    Every couple of weeks, I'll get a question about getting an arbitrary file on disk into a project in VS without asking VS to open in a document window directly. It seems to be pretty hard to find information for (when I needed to do it, it took a few email threads with various other teams to figure it...
  • Blog Post: Editor fundamentals: Text-Relative Adornments

    Tagging along with the last editor fundamentals post on the pull/event model , today's article is the application of that model to handling text-relative adornments. The adornment "manager" Within the editor, we use a fairly common pattern for structuring adornments. There are essentially two...
  • Blog Post: Spell Checker Update - Perf bug on large C# files

    I pushed an update (v2.22) to the Spell Checker extension just a little bit ago which fixes a pretty major and annoying performance issue with large C# files. I say "fixes", but it's really just a big work around, courtesy Michael (who will post an entry on his blog any day now . It's interesting enough...
  • Blog Post: Q&A: ITextSnapshot.GetText()

    (This is part of the Q&A Series ) This question comes from Cameron Peters, from the previous Q&A on read-only regions : How expensive, relatively is it to call Snapshot.GetText? I have a classifier/tagger that works well with small files (under 100K), but which bogs down as the file...
  • Blog Post: Editor fundamentals: Push vs. Pull

    (This is a new series I plan to write in occasionally, where I'll talk more generally about some of the design fundamentals of the editor and best practices for extensions) One of the things I learned early on, probably incorrectly, is that you can look at how components communicate and basically...
  • Blog Post: A quick update

    Sorry for (another) long hiatus, again. I've been pretty busy, the last few weeks especially, working on fixing bugs and some interesting internal projects that may make their way to the public eye soon-ish (like in the next few months soon-ish, which probably isn't that soon). In the interim, I...
  • Blog Post: Q&A: Read-only regions

    This question was asked recently on the (internal) editor discussion alias: Is it at all possible to make parts of the text buffer read-only? Could I, for example, mark certain spans as not modifiable, so that the user wouldn't be able to change their contents? The short answer is yes...
  • Blog Post: Extending extensions

    If you'd ever taken a peek at the code for the Spell Checker extension before a couple weeks ago, you may have noticed that there were some definition interfaces intermingled with the various implementation classes. One such example is the NaturalTextTag , which the spell checking logic aggregates to...
  • Blog Post: Disabling mouse wheel zoom through IEditorOptions

    One of the new features for the editor in Visual Studio 2010 is zoom, which is one of those nice things we get for free by using WPF. If you haven't played with it yet, there are two ways to zoom in an editor instance: the zoom control in the bottom margin (the one that normally reads "100 %"), and holding...
  • Blog Post: Marshal.RelaseComObject considered not-very-nice

    Paul Harrington just posted an interesting article on the Visual Studio blog entitled "Marshal.ReleaseComObject Considered Dangerous" . I don't have anything more technically useful to add, but I want to share my take on this. The article was especially poignant for me, as a few coworkers and I...
  • Blog Post: New extension: Align Assignments

    Download Align Assignments on the VS Gallery , and check out the source on github . About a month ago, a blog article about "TextMate shortcuts you should be using" came across my feed reader. The third item down on that list is "Align Assignments", which lines up successive equals signs ( = ) in...
  • Blog Post: New extension: CSS Is Less

    While browsing StackOverflow for questions about VS2010 , I came upon a question about how to make .less files open in the CSS editor . Coincidentally, I had written up an extension to do this in response to a tweet from about a month ago. Since the popularity of this has doubled (from one to two people...
  • Blog Post: A couple of VS2010 RC bug fixes

    I've made a couple of small fixes in various extensions since the RC. Things have been busy, still, so I haven't had a chance to get back to my normal blogging schedule, but I have had small bits of time for the following: Go To Definition v2.1 – Fixed bug where the caret can get stuck...
  • Blog Post: Two extensions for VS2008 parity

    Over the weekend, I came upon a question on StackOverflow about how, in the new editor, you can't override the foreground color of selected text. I had actually played around with writing an extension to "fix" this awhile back, but never really got it fully working. Reading that question and the, uh...
  • Blog Post: Markdown Part 4 - Outlining

    This is part of the "Markdown mode" series : Part 3.5 - Posted on the VS Gallery Part 3 - A live tool window previewer Part 2 - Writing a classifier Part 1 - Markdown! A few nights ago, around midnight, I was in that I'm-pretty-tired-but-too-tired-to-fall-asleep-now state, and so decided...
  • Blog Post: What's new for extenders in the Visual Studio 2010 RC?

    Welcome to the Visual Studio 2010 RC! This post is for everyone updating an extension from Beta 2, though it may have some points of interest for people who want to write a new extension against the RC (and the final, shipping version of Visual Studio 2010). For reference, here is "What's new...
  • Blog Post: More bug fixes

    I've had a really busy week this week (I'll hopefully be able to share more about that in the near future), so apologies that I missed my post on Monday. I'm also about to head out for a little mini-vacation tomorrow afternoon, but I decided to sneak a quick post in about a few of the recent bug fixes...
  • Blog Post: New extension: Spell Checker

    Download Spellcheck on the VS Gallery . Get the source on github . As I wrote about in my series on Markdown Mode , one of the features I've missed from vim and many other IDEs is spell check, both in normal code comments (from when I used Eclipse) and in writing plaintext or other mostly-text...
  • Blog Post: Markdown Part 3.5 - v0.1 posted on VS Gallery

    This is part of the "Markdown mode" series : Part 3 - A live tool window previewer Part 2 - Writing a classifier Part 1 - Markdown! I'm in a jolly mood, having just bought a new sofa and chair at IKEA and getting rid of my old one (it was the nastiest piece of furniture in the entire...
  • Blog Post: Bug fixes

    I took a little break from the Markdown work to fix a few bugs and annoyances in my other extensions. Go To Definition Go To Definition on github . Updated Go To Definition on VSGallery . There were two known issues with this one. The first was reported by a user, Craig Gidney, who...
  • Blog Post: Markdown Part 3 - A Live Tool Window Previewer

    This is part of the "Markdown mode" series : Part 2 - Writing a classifier Part 1 - Markdown! Well, this part ended up being both easier and considerably harder than I expected, depending on how you look at it. First, the obligatory screenshot: Easy stuff! So the...
  • Blog Post: New extension: Fix Mixed Tabs

    Download this extension on the Visual Studio Gallery, or search for it in the Visual Studio Extension Manager! A couple months back, I started work on a new extension. At the time, I was working with another person on a small side project, and one of the constant annoyances in sharing code was that...
  • Blog Post: Markdown Part 2 - Writing a Classifier

    Note: I started writing this about two months ago, and a lot has changed since then. Jeff Atwood released a C# port of the Markdown script (well, a cleaned up version of another C# port of a PHP port, to be exact) called MarkdownSharp (it's on google code here ). This saved me the trouble of porting...
  • Blog Post: Markdown!

    For awhile I've been searching for a better workflow for writing my blog. Using the community server interface online interface is pretty awful, though even good online interfaces aren't that great. You can't really overestimate the value of using the editor you are familiar with for writing more than...
  • Blog Post: What's new for extenders in Beta 2?

    If you are reading this, I'm sure there is a decent chance that you've either already used Visual Studio 2010 Beta 2 or at least read about some of the new features. For those of you interested in writing extensions for VS, I wanted to share a couple of updates around editor extensibility, particularly...
Page 1 of 2 (33 items) 12