Showing posts with label Visual Studio. Show all posts
Showing posts with label Visual Studio. Show all posts

5/17/2012

Remove blank lines in Visual studio


Steps to remove empty lines using Visual Studio in .cs or .vb file



Start Visual Studio and follow these steps.
1.Click Ctrl-H (quick replace)
2. Tick "Use Regular Expressions"
3. In Find specify ^$\n
4. In Replace box delete everything.
5 Click "Replace All"All empty lines will be deleted.

Regular expression for empty line consist of  

Beginning of line
End of line $
Line break \n

A regex to remove blank lines that are/aren't *really* blank (i.e. they do/don't have spaces):   ^:b*$\n

11/11/2010

SharePoint 2010 Product key

Product Keys.

SharePoint Server 2010 Enterprise Client Access License Features: GGDG8-JCMXH-8KG8C-RJYYX-3Y33H
SharePoint Server 2010 for Internet Sites, Enterprise: 9FPGB-W6QTT-G68T4-TBX7M-R624H
SharePoint Server 2010 Standard Client Access License Features: KB443-F7CJV-J2RP4-QYQJ7-6PBB3
SharePoint Server 2010 for Internet Sites, Standard: H4P2T-CYKM7-9FKKD-DTQ7X-W69GG

http://technet.microsoft.com/en-us/evalcenter/ee391660.aspx

11/10/2010

An exclusive series of Live webcasts on VS2010 ALM and Windows Phone 7 by PUG

Get ready to  accelerate your learning with guidance from experts.
Check out the practical examples and learn to compute , develop and build applications  with various Microsoft technologies , the easy way.

Pune User Group is coming up with a new  program
"Live Webcasts", an online event where professionals can view
series of webcasts on latest Microsoft Technologies.

To be a part of series , all you need to do is  register and attend the event online.

Upcoming Webcasts Series
Webcast Session Topic Speaker Register Link
Visual Studio Application LifeCycle Management Gouri Sohoni Click here to register for VS ALM series webcasts
Windows Phone 7 Mayur Tendulkar Click here to register for Windows Phone 7 series webcasts



For more information Log on to :

http://www.puneusergroup.org/live-webcasts.aspx
© 2010 Pune User Group. All rights reserved. Pune User Group


1/01/2009

Visual Studio 2005 & 2008 ShortCut Keys

There are 450 keyboard shortcuts in key VS 2005.
If you want to see all these then use following macro.
To Run Macro
1.Tools->Macro->Macro IDE OR ALT+F11
2.Expan MyMacro->Open Module1
3.Copy the following code
4.Run Macro (F5)

Check file c:\\Shortcuts.html

'Start Macro
Public Module Module1

Public Sub ListShortcutsInHTML()

'Declare a StreamWriter
Dim sw As System.IO.StreamWriter
sw = New IO.StreamWriter("c:\\Shortcuts.html")

'Write the beginning HTML
WriteHTMLStart(sw)

' Add a row for each keyboard shortcut
For Each c As Command In DTE.Commands
If c.Name <> "" Then
Dim bindings As System.Array
bindings = CType(c.Bindings, System.Array)
For i As Integer = 0 To bindings.Length - 1
sw.WriteLine("<tr>")
sw.WriteLine("<td>" + c.Name + "</td>")
sw.WriteLine("<td>" + bindings(i) + "</td>")
sw.WriteLine("</tr>")
Next

End If
Next

'Write the end HTML
WriteHTMLEnd(sw)

'Flush and close the stream
sw.Flush()
sw.Close()
End Sub
Public Sub WriteHTMLStart(ByVal sw As System.IO.StreamWriter)
sw.WriteLine("<html>")
sw.WriteLine("<head>")
sw.WriteLine("<title>")

sw.WriteLine("Visual Studio Keyboard Shortcuts")
sw.WriteLine("</title>")
sw.WriteLine("</head>")

sw.WriteLine("<body>")
sw.WriteLine("<h1>Visual Studio 2005 Keyboard Shortcuts</h1>")
sw.WriteLine("<font size=""2"" face=""Verdana"">")
sw.WriteLine("<table border=""1"">")
sw.WriteLine("<tr BGCOLOR=""#018FFF""><td align=""center""><b>Command</b></td><td align=""center""><b>Shortcut</b></td></tr>")


End Sub

Public Sub WriteHTMLEnd(ByVal sw As System.IO.StreamWriter)
sw.WriteLine("</table>")
sw.WriteLine("</font>")
sw.WriteLine("</body>")
sw.WriteLine("</html>")
End Sub

End Module
'End Macro

You can also check ShortCut Key Poster Developed by Microsoft
Visual Studio 2005
Visual Studio 2008

12/09/2008

.NET Framework Library Source Code

Now you can debug into .NET Framework Source code with Visual Studio 2008.
Source code is available for following libraries:
  • NET Base Class Libraries
  • ASP.NET
  • Windows Forms
  • Windows Presentation Foundation
  • ADO.NET and XML
Microsoft Reference
Detailed explanation about how to enable this.
Stepping into .NET Framwork Library source.
Debugging .NET Framework Library source.

11/19/2008

.NET 3.0 with Visual Studio 2005

If you want to use .NET 3.5 with Visual studio 2005 here is the way..

1.
First of all you must have .NET 3.5 Framework installed in your computer.
If you don't have then download it here.
If your firewall restricts the download you can download offline Installer from here.

2.
Now you require the Extension for Visual studio 2005 for Windows Workflow Foundation
you can download this extension here.

you can enjoy the functionality of .NET 3.0 in visual studio 2005