You found me…
Posts tagged visual studio
Windows Mobile 7 to be announced, 6.x to become free
Feb 10th
MSMobiles say they have the low down on Microsoft’s Mobile World Congress announcements, and what they leaked makes quite a bit of sense.
First the bits we think we know already:
Windows Mobile 7 will be introduced with Zune, Xbox, Bing integration. It will feature a new kernel,Games and Music improvements and a new user interface, based on Windows Presentation Foundation. Development will take place in the latest version of Visual Studio.
Now the new bits:
Clearly in a direct response to Nokia and Android, Windows Mobile (not sure which version) will come with free navigation (presumably turn by turn). Also clearly in a response to all the open source mobile OS’s, Windows Mobile 6.X will be free to developing markets.
As mentioned above, these changes make perfect sense, and shows a Microsoft prepared to respond much more rapidly than before to changes in the mobile market.
Read more at MSMobiles.com here.
JavaScript Debugging in IE6
May 16th
Simply put, IE6 is a complete PITA (Pain In The Ass) to develop in. Unfortunately, it still has a fairly large user base and so as developers we must often target IE6 when we develop applications. Debugging JavaScript in IE6 is horrible… unlike FireFox we do not have super slick tools like FireBug. Six Revisions comes to the rescue however by showing us how we can use Visual Studio to aid in debugging JavaScript in our application. Check out the full article JavaScript Debugging Techniques in IE 6.
Clone Detective for Visual Studio
Aug 23rd
Clone Detective is a Visual Studio integration that allows you to analyze C# projects for source code that is duplicated somewhere else. Having duplicates can easily lead to inconsistencies and often is an indicator for poorly factored code.
Paste Special As Unformatted text – must DIE
Feb 13th
I have a serious, SERIOUS issue with the fact that everything I paste into any document always retains the format of the place I copied it from. Drives me outta my mind. Visual Studio has special formatting… so if I paste it into a business or technical design document it throws off the formatting of the document. If I copy something from the Internet, it throws off the formatting. I can’t tell you how sick I am of typing Paste Special as unformatted text – by default this action requires using your mouse too… no keyboard shortcut. Check this out, I lifted it straight from Microsoft and you can see it on their page if you want to see the original text.
When you copy and paste formatted text into a Microsoft Word 2002 document, the Paste Options smart tag appears, which provides an option to paste the text without the formatting. This is handy if, for example, you don’t want to mix formatting styles in your document.
However, there are a couple of reasons why you might not want to use the Paste Options smart tag. First, if you’re like me, you frequently use the keyboard to copy (CTRL+C) and paste (CTRL+V) text. This means that to use the Paste Options smart tag, you must remove your hand from the keyboard, use the mouse to click the Paste Options smart tag and select an option, and then return your hand to the keyboard to continue working. If, like me, you do this operation a couple of dozen times a day, it can represent a substantial interruption in your work flow. Second, the Paste Options smart tag isn’t available in earlier versions of Word. You could use the Paste Special option on the Edit menu to paste unformatted text, but then you are back to using extra mouse clicks.
Create and run the macro
First let’s create the macro, which will allow us to paste unformatted text from the Clipboard into your documents. If you’ve never created a macro before, this one provides both a good learning experience and a useful function.
To create the macro to cut and paste without formatting
- Start Word.
- On the Tools menu, point to Macro, and then click Macros to display the Macros dialog box.
- In the Macro name box, type PasteUnformattedText.
- Make sure that All active templates and documents is displayed in the Macros in list, and then click Create. The Microsoft Visual Basic� Editor is displayed.Note: If you need to learn about the Visual Basic Editor, see the Power User Corner column Managing Macros with the Visual Basic Editor.
- Directly above the End Sub statement in the PasteUnformattedText�subroutine, type the following line of code: Selection.PasteSpecial DataType: =wdPasteText
- On the File menu, click Close and Return to Microsoft Word.
Now you need to instruct Word to run the PasteUnformatedText macro each time you press the CTRL+V keyboard shortcut.
To run the macro each time you press CTRL+V
- On the Tools menu, click Customize.
- Click the Keyboard button.
- Make sure the Save changes in box displays Normal.dot.
- In the Categories list, click Macros.
- In the Macros list, click PasteUnformattedText.
- Click in the Press new shortcut key box, press and hold the CTRL key, and then press and hold the V key at the same time. The Press new shortcut key box displays Ctrl+V.
- Click Assign. Click Close and then click Close again.
That’s it! Now, every time you press CTRL+V, Word pastes text from the Clipboard without the formatting.
If you ever want to return the CTRL+V keyboard shortcut to its default behavior, it’s very easy to do.
To return the CTRL+V shortcut to its default behavior
- On the Tools menu, click Customize.
- Click the Keyboard button.
- Make sure the Save changes in box displays Normal.dot.
- In the Categories list, click Macros.
- In the Macros list, click PasteUnformattedText.
- In the Current keys box, click Ctrl+V and then click Remove.
- Click Close, and then click Close again.
The CTRL+V keyboard shortcut now pastes text and any formatting from the Clipboard by default. However, the PasteUnformattedText macro is still available if you ever want to use it again.