Positive Core

 

Dopo un po di sedimentazione ecco in questa Mind-Map alcuni suggerimenti di Tim Mackinnon

Positive Core

Un paio di link per approfondire, anzi 4:
- XP - Call In The Social Workers
- Italian Agile Day 2007 - Mackinnon
- Dare feedback in modo efficace
- Esprimere un apprezzamento e dare approvazione

E per restare in tema:  la scienza del sorriso e  Positive Psychology

 

Tags :   |  |  |  |

Macro per creare Toolbar e shortcut nell'IDE

 

Questo codice crea Toolbar, può aggiunge alla Toolbar dei bottoni che richimano dei comandi qualunque (una altra Macro , un comando standard dell'IDE o un metodo di un Add-In) e può definire degli Shortcut  per qualsiasi comando.

Può essere usato dentro una Macro e negli Add-In di Visual Studio.

 

        Dim Answer As MsgBoxResult = MsgBox("Crea la toolbar dei PowerToys?", _
MsgBoxStyle.Question Or MsgBoxStyle.OkCancel) If Answer = MsgBoxResult.Ok Then Dim MyToolbar As CommandBars.CommandBar Const ToolbarName As String = "MyPowerToysToolbar"
' ' Delete the Toolbar if it already exists ' Try MyToolbar = DTE.CommandBars.Item(ToolbarName) MyToolbar.Delete() Catch e As ArgumentException End Try ' ' Create the Toolbar ' MyToolbar = DTE.Commands.AddCommandBar(ToolbarName _
, vsCommandBarType.vsCommandBarTypeToolbar) MyToolbar.Enabled = True MyToolbar.Visible = True
' ' Add comand buttons to the Toolbar ' AddCommandButtonToTheTollbar(MyToolbar _
, "Macros.Samples.Accessibility.IncreaseTextEditorFontSize" _
, "Font+", "Increase TextEditor font size") AddCommandButtonToTheTollbar(MyToolbar _
, "Macros.Samples.Accessibility.DecreaseTextEditorFontSize" _
, "Font-", "Decrease TextEditor font size") End If Dim Answer2 As MsgBoxResult = MsgBox("Attiva gli Shortcut ai comandi dei PowerToys?", _
MsgBoxStyle.Question Or MsgBoxStyle.OkCancel) If Answer2 = MsgBoxResult.Ok Then
' ' Define keyboard Shortcut fot the commands ' SetCommandShortcutKey("Macros.Samples.Accessibility.IncreaseTextEditorFontSize" _
, "Global::Alt+M") SetCommandShortcutKey("Macros.Samples.Accessibility.DecreaseTextEditorFontSize" _
, "Global::Alt+S") End If ---------------------------------------
Private Sub SetCommandShortcutKey(ByVal CommandName As String, ByVal Shortcut As String) Dim MacroCommand As Command = DTE.Commands.Item(CommandName) MacroCommand.Bindings = Shortcut End Sub Private Sub AddCommandButtonToTheTollbar(ByVal Toolbar As CommandBars.CommandBar_
, ByVal CommandName As String _
, ByVal CommandCaption As String _
, ByVal CommandTooltip As String) Dim MacroCommand As Command = DTE.Commands.Item(CommandName) Dim ToolbarButton As CommandBars.CommandBarButton = MacroCommand.AddControl(Toolbar) ToolbarButton.Visible = True ToolbarButton.Style = CommandBars.MsoButtonStyle.msoButtonCaption ToolbarButton.Caption = CommandCaption ToolbarButton.TooltipText = CommandTooltip End Sub

Automatizzare l'IDE per incrementare la produttività

 

Sto lavorando ad una solution molto grande con 100aia di progetti e qui mi è nata la necessità di automatizzare alcune operazioni nell'IDE di Visual Studio.

Ho trovato questi esempi molto utili:  Visual Studio 2005 Automation Samples

Qui la descrizione:

______________________________

Brief Description
These code samples show you how to build VSMacros projects, add-ins, and wizards to make your teams more productive and to customize Visual Studio 2005 to the ways you like to work.
Overview
Microsoft has invested heavily in Visual Studio extensibility. This is an important part of Visual Studio because it lets customers easily tailor the tool to their personal working style and enables them to accommodate team practices. You can simply capture several steps in a regular process (for example, for check-ins, creating new projects or forms, or updating code) and make that process available as a single command to invoke. Independent software vendors (ISVs) can implement entirely new features (including groupware, profiling tools, work flow, or life-cycle tools) that fit into Visual Studio 2005 as seamlessly as if they were built into the shipping Visual Studio product.

These code samples show you how to build VSMacros projects, add–ins, and wizards to make your teams more productive and customize Visual Studio 2005 to the ways you like to work. Look for more samples, as well as some white papers and overview documents, in the future.