How can I reverse code around an equal sign in Visual Studio?

后端 未结 4 845
一个人的身影
一个人的身影 2020-12-12 20:29

After writing code to populate textboxes from an object, such as:

txtFirstName.Text = customer.FirstName;
txtLastName.Text = customer.LastName;
txtAddress.Te         


        
4条回答
  •  难免孤独
    2020-12-12 21:06

    I had the same need but I had to accept more characters than a-zA-Z\. in the solution provided by John so I slightly modified its regular exception like this :

    Find what : {^[^\=]*} = {.*}

    Replace with : \2 = \1

    This will reverse anything arround the first equal sign found on a line

提交回复
热议问题