Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 885759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:57:39+00:00 2026-05-15T12:57:39+00:00

I was watching a screencast of someone using Resharper (on VS 2010 or 2008,

  • 0

I was watching a screencast of someone using Resharper (on VS 2010 or 2008, not sure) where they were able to fill in a test name with a string literal:

public class FooTest
{
    public void "runs backgrounnd process until complete"

and then some command transformed it to

public class FooTest
{
    public void runs_backgrounnd_process_until_complete()
    {

I was wondering if anyone knew what that command was.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T12:57:40+00:00Added an answer on May 15, 2026 at 12:57 pm

    It is a visual studio macro that originally came from JP Boodhoo’s Nothing But .NET Boot Camp class. This is it:

     Sub ConvertLine()
            If DTE.ActiveDocument Is Nothing Then Return
    
            Dim isOpen As Boolean = OpenUndo("ConvertLine")
    
            Dim selection As TextSelection = CType(DTE.ActiveDocument.Selection(), EnvDTE.TextSelection)
            selection.SelectLine()
            If selection.Text = "" Then Return
    
            Dim classKeyword As String = "class """
            Dim methodKeyword As String = "void """
            Dim classIndex As Integer = selection.Text.IndexOf(classKeyword)
            Dim methodIndex As Integer = selection.Text.IndexOf(methodKeyword)
            If classIndex + methodIndex < 0 Then Return
    
            Dim index = CType(IIf(classIndex >= 0, classIndex, methodIndex), Integer)
            Dim prefix = selection.Text.Substring(0, index) + CType(IIf(classIndex >= 0, classKeyword, methodKeyword), String)
            Dim description As String = selection.Text.Replace(prefix, String.Empty)
    
            Dim conversion As String = Common.ReplaceSpacesWithUnderscores(description)
            conversion = Common.ReplaceApostrophesWithUnderscores(conversion)
            conversion = Common.ReplaceQuotesWithUnderscores(conversion)
    
            selection.Text = prefix.Replace("""", String.Empty) + conversion
            If prefix.Contains(methodKeyword) Then selection.LineDown() Else selection.LineUp()
            selection.EndOfLine()
    
            CloseUndo(isOpen)
        End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Watching some videos they talk about endpoints and im not sure what the differences
I was watching a screencast where the author said it is not good to
I'm watching the config files of my NodeJS server on Ubuntu using: for( var
I've followd the How I Test screencast at RailsCasts , however I ran into
Watching a WWDC 2011, I saw advice (but not an explanation) that one should
While watching some videos on Channel 9 about the Reactive Extensions for .NET, someone
After watching this video , I am wondering if I am using my controllers
I was watching the WWDC 2009 Keynote and something someone said about Windows 7/Vista
I was watching a screencast with Jim Weirich where he started to do something
Been watching a WWDC video today about new features in xCode 4. They have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.