About Me · Send mail to the author(s) E-mail · Twitter

At GROSSWEBER we practice what we preach. We offer trainings for modern software technologies like Behavior Driven Development, Clean Code and Git. Our staff is fluent in a variety of languages, including English.

Feed Icon


Open Source Projects


Blogs of friends

Now playing [?]

Error retrieving information from external service.
Page 1 of 1 in the Presentations category

Visual Studio Tip: Setting Indent Width and Tabs/Spaces Quickly Using Macros

Posted in .NET | Presentations | Visual Studio at Sunday, 24 January 2010 17:07 W. Europe Standard Time

Over the last years I’ve been contributing to several Open Source software projects, just to name the most recent:

All of the above projects follow their own style how to lay out the source code using indents. It seems like everybody has a different opinion you would have to cater for, for example:

  • Indenting is done with tabs
  • 4-space indents
  • 2-space indents

Often times these conventions are implicit, you have to read the source code to see the actual style the authors follow. It is encouraged to apply these guidelines to your patches ensure they will be accepted.

I often switch between developing for projects, so before writing a single line of code I have to hit Visual Studio’s Tools | Options | Text Editor Options dialog and change the indent settings to match the project’s conventions.

Visual Studio Text Editor Options

This has become very tedious, additionally, I often forget to adjust the indent settings before writing code. (Perhaps I forget it because it’s so annoying.)

To scratch that itch I sat down and wrote some Visual Studio macros that apply the most commonly used settings:

Imports System
Imports EnvDTE
Imports EnvDTE80
Imports EnvDTE90
Imports System.Diagnostics

Public Module Fonts
    Sub TwoSpaces()
        Dim textEditor As Properties

        textEditor = DTE.Properties("TextEditor", "AllLanguages")
        textEditor.Item("IndentStyle").Value = vsIndentStyle.vsIndentStyleSmart
        textEditor.Item("TabSize").Value = 4
        textEditor.Item("IndentSize").Value = 2
        textEditor.Item("InsertTabs").Value = False
    End Sub

    Sub FourSpaces()
        Dim textEditor As Properties

        textEditor = DTE.Properties("TextEditor", "AllLanguages")
        textEditor.Item("IndentStyle").Value = vsIndentStyle.vsIndentStyleSmart
        textEditor.Item("TabSize").Value = 4
        textEditor.Item("IndentSize").Value = 4
        textEditor.Item("InsertTabs").Value = False
    End Sub

    Sub OneTab()
        Dim textEditor As Properties

        textEditor = DTE.Properties("TextEditor", "AllLanguages")
        textEditor.Item("IndentStyle").Value = vsIndentStyle.vsIndentStyleSmart
        textEditor.Item("TabSize").Value = 4
        textEditor.Item("IndentSize").Value = 4
        textEditor.Item("InsertTabs").Value = True
    End Sub

    Public Sub NormalFonts()
    End Sub

    Public Sub LargeFonts()
    End Sub

    Sub SetFontSize(ByVal size As Int32)
        Dim textEditor As Properties

        textEditor = DTE.Properties("FontsAndColors", "TextEditor")
        textEditor.Item("FontSize").Value = size
    End Sub
End Module

These macros are associated with toolbar buttons:

Visual Studio Toolbar Buttons

The first two buttons are associated to the LargeFonts and NormalFonts macros that set the editor font size. I like to invoke these when doing presentations. No more fiddling with Tools | Options to ensure your audience is able to read the code on the wall.

The last three buttons should be self-explaining, they’re to quickly set tabbed, two-space and four-space indents, respectively.

TED Presentations (Definitely Worth Spreading)

Posted in Presentations at Thursday, 17 May 2007 01:50 W. Europe Daylight Time

For everyone that likes lively and interesting presentations like I do, let me recommend a site that I've become attracted to lately. TED is an annual conference with no particular topic like the ones I've got to know during my last years at university. Instead, the organizers pick a theme like The Pursuit of Happiness in 2004.

Since I subscribed to the TED video feed (highly recommended) I've watched some hours worth of interesting and entertaining presentations on

After you've watched some of these, don't miss the hilarious parody by Tom Rielly closing the 2006 conference.

You see, there's a wide variety of topics covered, each presentation taking up no more that 20 minutes. I find that their site is bit difficult to navigate, but that doesn't harm the great content it provides. TED talks give insight into various aspects of humankind, science, our society and art previously unbeknownst to me in such a way that I now view some issues with a broader perspective. It's nothing short of fascinating to see new ideas and thoughts brought up concisely and to the point like at TED, simply blasting my mind and urging me to soak up more content.

Anyone who wants even more after these ~160 minutes of joy, see my compiled list of "great presentations" (at least to me) over at my links.

Now on to my latest coding project for the next big thing we're doing at our local user group. I was planning to realize a web application to submit talk proposals with Subsonic and the MVP pattern (after watching the excellent Polymorphic Podcast series), but Torsten has imposed some nasty requirements like an Access "database" thwarting my noble intentions.

Folien meines Vortrags vom .NET Wintercamp 2007 in Leipzig

Posted in DNUG Leipzig | Presentations | Tools and Software at Thursday, 22 March 2007 19:34 W. Europe Standard Time

Der Foliensatz des heutigen Vortrags mit dem Titel Tools aus dem Basement kann nun heruntergeladen werden. Ich hoffe alle Teilnehmer hatten so viel Spaß wie ich. Für Rückfragen stehe ich natürlich per E-Mail oder Kommentarfunktion zur Verfügung. Noch einmal der Hinweis zu den orangefarbigen Links in der Präsentation: Das Kürzel einfach hinter den URL setzen und Sie gelangen zur referenzierten Seite. Oder nutzen Sie alternativ einen der unten aufgeführten URLs.

Bisher schätze ich das .NET Wintercamp als sehr gelungene Veranstaltung ein, auch wenn ich aufgrund meiner Arbeit nur Abends anwesend sein kann. Gerade die gut besuchten Abendveranstaltungen, wie z. B. das Buffet der ECG Erdgas-Consult GmbH aus Leipzig, das Spanferkel, gesponsert durch Microsoft Deutschland und die gestrige Brauereiführung mit anschließendem Abendessen im Restaurant FELIS zeigen, dass es in Leipzig eine große Anzahl an .NET Technologien interessierter Entwickler und Studenten gibt. Ich freue mich auf Anmeldungen bei der .NET User Group Leipzig!


Now Playing [?]: BonoboDays to comeIf you stayed over (featuring Fink)


Posted in Presentations at Monday, 04 September 2006 14:22 W. Europe Daylight Time

Presentations thrill me, especially if they're carefully designed and held professionally. Because I'm always interested in good content presented in an efficient and entertaining way I've collected some presentation links over the last months. All presentations show great skills and also have thoughtful content. I would like to share the best videos here.

  • Is Google Book Search "Fair Use"? Lawrence Lessig talks about copyright issues with the Google Books project.
  • Free Culture Another great presentation by Lawrence Lessig in which he discusses the changes applied to the copyright laws and their implications for almost everything we do on a daily basis.
  • Identity 2.0 Dick Hardt shows his excellent presentation skills talking about identity on the web.
  • The Great Failure of Wikipedia Jason Scott talks about the processes inside Wikipedia and their often-unintended consequences.
  • All Marketers are Liars Seth Godin presents in front of Google employees analyzing their ability to tie their customers not only by cutting-edge technology but rather by making the services better than the ones provided by their competitors.
  • The Art if the Start Guy Kawasaki on entrepreneurial challenges and the business plan.
  • Seth Godin at Gel 2006 where presents on his This Is Broken project. Very funny indeed.

Now playing: Leftfield - Inspection (Check one)

Page 1 of 1 in the Presentations category