November 2007 - Posts
On the Tools – Options – Text Editor – File Extension page, you can map a file extension to one of the included editors. And after mapping the .sara extension to a C# editor, we now get syntax highlight... There is also an option to map files without
Read More...
Honestly, I had to ask around what this one did. I couldn't remember to save my life. Automatic Delimiter Highlighting Whenever you have code construct pairs (that's what the documentation calls them), when you finish typing either the start or end pair,
Read More...
I think I've blogged myself into a recursion. http://blogs.msdn.com/bethmassi/archive/2007/11/28/first-day-at-devteach.aspx Okay, i've made it to Canada. Although make sure you know where "home" is for border patrol. "Where's home?" "NeSeattle." I nearly
Read More...
At first, when I heard "come down to Vancouver", i thought Vancouver, WA. I didn't realize they were talking about Canada. Thankfully, i looked up the address of the conference hotel before heading south. The conference http://www.devteach.com
Read More...
Hey, you know you went back for a third helping at thanksgiving (unless you are my uncle jimmy, who gets 4ths and 5ths on their first pass). So what could follow a Tip of the Day Browser ? How's about a Tip of the Day Windows Sidebar Gadget ! Special
Read More...
So what Turkey Day was last week? No reason why we can't have a second helping of tip of the day... but as an add-in! Beth Massi, our VB community expert, wrote a Tip of the Day Browser . But even better, she's got a Let's Build an Add-In walkthrough,
Read More...
In a previous tip, we learned more than we ever wanted to know about go-back markers . Insertion points are slightly different. They are similar to the go-back markers, but it is anywhere you click the mouse or jump the cursor to. The go-back marker 10
Read More...
Wow, I had recorded this the other day, because hey, it's a Highlander movie with Adrian Paul, and finally got around to watching it. Signs you shouldn't do yet another highlander movie The last highlander movie ended (yet again) with Adrian Paul as the
Read More...
I hope this tip's title makes sense. The idea is that you select some text and then hit escape. Where do you want the cursor to go? If you want it to stay where it is, that's the default behavior. But if you want it to jump to the beginning of the selection
Read More...
It's time for an old favorite from the Visual Studio 2005 days... Remember How to search using the Ctrl+D Window from one of the earlier tips? Now let's have a little more fun... Press Ctrl+D to go to the Find Combo Box and then... Goto a line – type
Read More...
To create an alias, open up the Command Window (or anywhere you can type in VS commands) and type in something along the lines of alias GobblesGobblesGobbles help.about and now running GobblesGobblesGobbles from the VS command window will pop up the Help
Read More...
The command Tools.Shell will run an external executable out of process from VS. To run, it is basically Shell <executable> But of course, we got optional arguments... Shell [/commandwindow] [/dir:folder] [/outputwindow] <executable> [/args]
Read More...
You can record your command window session via the log command. Just run log -on <filename> and start recording. To finish logging, it's just log -off There is also an option to overwrite the existing file; otherwise it will append. Note that both
Read More...
After the past several weeks of Find tips (i knew i would have a few tips, just not nearly a month's worth!), let's change things up a bit and talk about the command window. Press Ctrl+Alt+A to open the command window. Check the keybinding for View.CommandWindow
Read More...
The results of a Find Symbol or a Quick Find Symbol will appear in the Find Symbol results. Similar to the Find Results window (when searching for text), you can press Ctrl+Alt+F12 to bring up the Find Symbols Results window (View.FindSymbolResults) press
Read More...
Similar to yesterday's tip on Find Symbol... select a word in the editor you want to do a Find Symbol on, then press Shift+Alt+F12 . No Find Symbol window will appear. It is bound to Edit.QuickFindSymbol. The Quick Find Symbol uses the same customizations
Read More...
The final search command is Edit.FindSymbol, bound to Alt+F12. You can search within your current solution (including or excluding references), or even within the .NET Framework. Technorati tags: VS2005Tip , VS2008Tip
Read More...
Almost all Visual Studio commands can be run via the command line (scope willing). Check out running the find command via the command line (or the Ctrl+/ window - edit.gotocommandline). Additional Command Line options: Edit.Find /options - Shows which
Read More...
Far too often, we uncheck the "Show this message again" checkbox not knowing how to get the message back. For Find and Replace, you can specify whether to hide or show these message boxes at Tools - Options - Environment - Find and Replace, options Display
Read More...
You could say that all these find tips for the couple of weeks are building up to this tip... how to do a Replace in Files. Just like Ctrl+H does a Quick Replace, Ctrl+Shift+H will bring up the Replace in Files window. We've seen all these options over
Read More...
Press the keyboard chord Alt+F3, S (bound to Edit.StopSearch) to stop a background search, also known as a Find in Files. You can also press the Stops a background Find toolbar button on the Find Results window. Technorati tags: VS2005Tip , VS2008Tip
Read More...
You've probably noticed that doing a Find in Files returns all the hits in a Find Results tool window. You can use F8 (with focus either in the Find Results window or in the editor) to navigate to the next result or Shift+F8 to the previous result. (Edit.GoToNextLocation
Read More...
With the Find in Files window showing, change the Look In: combo box to anything except for open docs and current docs. This will enable the Look at these file types: option to select what files to search for. And for more advanced searching... There's
Read More...
And yet another way of searching code in Visual Studio... it's called Find in Files. It is the most comprehensive way to do a search. You can press Ctrl+Shift+F to bring up Find in Files (or check the keybindings for Edit.FindInFiles). Additionally, you
Read More...
The Find and Replace window is not a dialog, but actually a tool window. Thus you can dock it to the side if you find it in your way. Right-click on the tool window titlebar and select Dockable . Now the tool window can be docked using a docking target.
Read More...
Another little thing I completely forgot about... You can search using either wildcards or regular expressions in the Find and Replace window. Expand the Find options, and check Use: This will enable you to select either wildcards or regular expressions
Read More...
Go to the Tools - Options - Environment - Find and Replace page, uncheck the automatically populate Find What with text from the editor. Now, when you hit Ctrl+F (Quick Find) or Ctrl+Shift+F (Find in Files) or Ctrl+H (Quick Replace), and so forth... the
Read More...