Home > other >  How to select a huge string variable in VS Code?
How to select a huge string variable in VS Code?

Time:11-16

So I have this huge line-by-line std::string variable which is about 58 thousand lines.
How could I select my entire variable? By clicking and dragging I think it takes about 5 minutes :)

This is how I stored my string:

std::string str = "504b0304140000000800b3ab584fd82c4d1ec01b00002a45000007000000"
                  "4348414e474553955bfb73db4872fed95775ffc364cf1593673e44ca92bd"
                  "aa3b27b6a4f5ea4eaf58f2de6ea5121c080c499cf03a0c2089fbd7a7bfee"
                  "...";

It goes for about 58 thousand lines, how could I select it?

CodePudding user response:

I was able to select my huge variable by clicking at the beginning of my variable and Shift click at the end of it. (@Ranoiaetep idea)

CodePudding user response:

You can try "Expand Selection" by Ctrl Alt right arrow/arrow

  • Related