Select all lines between two locations in Eclipse - eclipse

If I have a +20000 line source code in Eclipse, and I want to select say everything between line 400 and line 12000, how can I do that?
Other than selecting with mouse.

Related

How can I go to red line of error in Eclipse?

My question is if there is any command that allows me to go to the red error line in Eclipse. For example, I am in line 1 of my file and there is an error in line 1200 – is there any way to go directly to that line? (Obviously, I don't know the line number, so I don't use ctrl + L.)
As the commenter said, you can do this from the problems view, but there are ways to navigate somewhat efficiently in the source view.
While your cursor is in a file in the source view, the function "next" might be bound to "Ctrl+." (control-period). This is implemented in various scopes to do different things, but in the source view, it goes to the next "issue" in the file. If your only issue in the file is the error, then that keypress will bring you to that line.
In addition, the right-hand margin of the source view contains a column that spans the entire file. If there is an error on a line, you'll see a red horizontal block in that column. The height of the block would likely be relative to the size of the file. You can click on points in that column to go to that portion of the file, so if you click on the red mark, it will land close to that line.

Visual Studio Code setting delete empty line

How can I delete red box empty line? When scrollbar touch bottom, empty line will appear, I want to delete these empty line.
Those are technically not lines (see they don't have line number), but a generated visual space below the last line of your file.
You can turn off this feature by adding the following to your preferences (File > Preferences Settings):
"editor.scrollBeyondLastLine": false,
By doing this, the last line of your file will be at the bottom of the editor pane when you scroll down to the maximum.

How do you select a range of lines in Visual Studio Code?

How do you select a range of lines (from a start line number to an end line number) in Visual Studio Code?
I had to delete lines starting from line number 17158 through 1644546 which was nearly impossible to do if I used scrolling. So I followed 4 simple steps:
Go the line where you want to start deleting (17158 in my case).
Using keyboard, press Ctrl+G which opens a box to enter the line number to go to.
Enter the line number in the box (1644546 in my case). VS Code will take you to the line you wanted to go to.
Hold the shift key and click on the line. Hopefully, this should select all the lines that you wanted to delete.
Since version 1.46 it seems like you can set an anchor and select from anchor to cursor: https://code.visualstudio.com/updates/v1_46#_accessibility
First set a selection anchor (default binding Ctrl+K Ctrl+B)
Then go to the line that you want, either by mouse or by Go To Line command
Then Select From Anchor to Cursor (default binding Ctrl+K Ctrl+K)
To cancel selection hit esc.
Click at the first column of the first line. Then scroll down to the last line that you want to select, HOLD Shift key and click on the last line.
Try this out...
Type #region at the start of the line which you want to select and #endregion at the end of the line and collapse it using the side ruler available in VS code .Now since it will in a single region you can select the region easily
Hi y'all I found a really fun way to do it. Ctrl-= will select to the last go back.

Copy Lines including carriage return linefeed in notepad++

Using Notepad++ I want to select individual, non-contiguous lines, copy them, and past them and include the CR/LF at the end. Preferrably, I would hold Ctrl, then click the line numbers I want, then press Ctrl+C or right click and select copy; however doing this selects all text (which is frustrating and doesn't make much sense). Furthermore, only selecting the line partially includes the line below it, so that if i press Ctrl+Shift+Up(or down) the line below it also moves up or down.
In summary, I want to copy non-contiguous lines and past them with their respective EOL characters.
Use Ctrl+F2 to mark desired lines.
Menu Search > Bookmarks > Copy bookmarked lines will copy these lines into clipboard.
As option for step 1, you can use Mark tab of Find dialog (Ctrl+F) with Mark Line option checked.

What is the first line number in Eclipse?

I don't want to have to download and install eclipse on this machine, but for you who do have it, what is the first line on the Eclipse IDE? On the left after you enable line numbers in the left hand column, the first number is?
In the Java source editor, at least, the first line number is 1.