code_junkie

Is there a way to change something in Tool->Options via a macro?

Nov 11th, 2011
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. DTE.ExecuteCommand ("Tools.Options")
  2.  
  3. Dim p = DTE.Properties("ProjectsAndSolutions","BuildAndRun")
  4. p.Item("MaxNumParallelBuilds")
  5.  
  6. Sub EditConcurrentBuilds()
  7. Dim p As EnvDTE.Properties = DTE.Properties("Environment", "ProjectsAndSolution")
  8. Dim item As EnvDTE.Property = p.Item("ConcurrentBuilds")
  9. Dim text As String = InputBox("Enter number of concurrent builds", "Concurrent Build Option")
  10. Dim v As Integer = Val(text)
  11.  
  12. If (v > 0 And v < 5) Then
  13. item.Value = text
  14. End If
  15. End Sub
Add Comment
Please, Sign In to add comment