I import the List into the database and just want to delete the "new Product" before each line (at the same time). How can this be done in the studio?

I have objects in my sheet

new Weapon("a", 505, 332, 7, 1.5), new Weapon("b", 436, 286, 7, 1.5), new Weapon("c", 454, 226, 6, 1.5), new Weapon("d", 392, 195, 6, 1.5), 

I just want to copy and paste into the table and at the same time remove all new Weapon from all the lines. Saw somewhere hot-key on this topic).

I want to get

 ("a", 505, 332, 7, 1.5), ("b", 436, 286, 7, 1.5), ("c", 454, 226, 6, 1.5), ("d", 392, 195, 6, 1.5) 
  • I do not understand the essence of the question ... If you want to save the class in the database, then look in the direction of serialization ... - iluxa1810
  • @ iluxa1810 clarified the question. - cruim
  • Add another option you want. - Monk
  • one
    Make the usual replacement of new Weapon for emptiness. Replacement can be done only in the selected text, and therefore nothing superfluous will break. - Monk
  • 2
    Hold Alt + Shift and select with arrows or mouse. - Alexander Petrov

1 answer 1

You can use alt + shift to select multiple lines. Or select a section of code and replace new Weapon with an empty string using ctrl + h