Recent

Author Topic: [SOLVED] Beginner-> IDE-> Source Code(Window)->UnHide lines  (Read 1141 times)

What I can do

  • Full Member
  • ***
  • Posts: 103
[SOLVED] Beginner-> IDE-> Source Code(Window)->UnHide lines
« on: August 07, 2024, 06:15:30 pm »
Windows 10@64
Lazarus/FPC 3.2
How do I unhide a row?
I accidently bumped the mouse button while moving
something clicked on the source code window
Now line 1032 is hidden
Where do I find information about this, I don't mind doing research but damn WHERE IS IT?
« Last Edit: August 07, 2024, 07:21:48 pm by What I can do »

Thaddy

  • Hero Member
  • *****
  • Posts: 15735
  • Censorship about opinions does not belong here.
Re: Beginner-> IDE-> Source Code(Window)->UnHide lines
« Reply #1 on: August 07, 2024, 06:26:35 pm »
click on the + sign in the left margin
If I smell bad code it usually is bad code and that includes my own code.

What I can do

  • Full Member
  • ***
  • Posts: 103
Re: Beginner-> IDE-> Source Code(Window)->UnHide lines
« Reply #2 on: August 07, 2024, 06:29:55 pm »
There is no "+" sign like in Delphi

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10310
  • Debugger - SynEdit - and more
    • wiki
Re: Beginner-> IDE-> Source Code(Window)->UnHide lines
« Reply #3 on: August 07, 2024, 06:45:07 pm »
Did you delete or hide the line? If "Delete" then undo will help (If you haven't done anything else, and if you haven't restarted the IDE or changed project....

First of all, by default the IDE shows only every 5th line number, and dots on the lines in-between.  However if you move the text-cursor (caret) through those line (e.g. with cursor down) then each line number will be shown.

So, if you place the cursor on line 1030, and then press cursor down, the editor should show the 1031 for the line you moved down to.
If you then press down ONCE again, does it show 1033 for the next line? Effectively leaving out 1032?


If the line is hidden, then some sort of symbol should be present on the left hand side. (And also a yellow box with dots at the end of one of the text lines / could be a different color).

See Image.
Below line 40 is one line HIDDEN and there is a small box with a down arrow. This will show it.

At line 46 are also some hidden lines. In this case it is a + in a box. (There is a reason for the 2 symbols, but ...)


You can also right click (context menu) on that vertical line between the boxes (anywhere on that line), and the context menu should show "unfold all".


If you do not have that line either there are key combos
  ALT SHIFT 0
may unfold everything. BUT many operating systems hook that and it may not work. (WARNING, it may have your OS do things you don't want / change keyboard layout)

You can configure the key settings in "keymap" of the menu: Tools > Options
Search for "fold"

And you can make that line visible under "Editor > Display" in the same  dialog (same menu entry). Look for fold/folding



What I can do

  • Full Member
  • ***
  • Posts: 103
Re: Beginner-> IDE-> Source Code(Window)->UnHide lines
« Reply #4 on: August 07, 2024, 07:00:07 pm »
LOL, that was my first thought..
Yes, I use CTRL+Z often
but the line listing shows a gap between 831~833

This snap shot shows the  831 then next line 833
Where is line 832?

furthermore: Your snap shot shows another column where mine is not displayed
« Last Edit: August 07, 2024, 07:16:02 pm by What I can do »

dseligo

  • Hero Member
  • *****
  • Posts: 1373
Re: Beginner-> IDE-> Source Code(Window)->UnHide lines
« Reply #5 on: August 07, 2024, 07:15:41 pm »
Try to press that square with minus in line 831.

What I can do

  • Full Member
  • ***
  • Posts: 103
[SOLVED] Beginner-> IDE-> Source Code(Window)->UnHide lines
« Reply #6 on: August 07, 2024, 07:21:01 pm »
LOL!
It's my monitor
apparently one of the color tubes is going bad so that particular color is blended into the background and is not clearly visible but when I move it to my second monitor bingo it showed up.
Anyway I thank you very much for your guidance. 
« Last Edit: August 07, 2024, 07:29:20 pm by What I can do »

Thaddy

  • Hero Member
  • *****
  • Posts: 15735
  • Censorship about opinions does not belong here.
Re: Beginner-> IDE-> Source Code(Window)->UnHide lines
« Reply #7 on: August 07, 2024, 07:21:43 pm »
@dseligo
No, the plus sign to unhide it... You showed the other way around
If I smell bad code it usually is bad code and that includes my own code.

What I can do

  • Full Member
  • ***
  • Posts: 103
Re: [SOLVED] Beginner-> IDE-> Source Code(Window)->UnHide lines
« Reply #8 on: August 07, 2024, 07:27:14 pm »
this is a Global unit not a TForm Application
but if I very carefully position the mouse right where I think the "+" would be
once clicked the 832 line shows up.
So my plan is to upgrade monitor

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10310
  • Debugger - SynEdit - and more
    • wiki
Re: [SOLVED] Beginner-> IDE-> Source Code(Window)->UnHide lines
« Reply #9 on: August 07, 2024, 07:35:47 pm »
You can go to menu: Tools > Options
Then: Editor > Display > Color

There you can find the Colors for: Gutter > Code Folding Tree
(and maybe also "Code Folding (Current)"

And assign different colors for the +/-

Maybe that helps

dseligo

  • Hero Member
  • *****
  • Posts: 1373
Re: Beginner-> IDE-> Source Code(Window)->UnHide lines
« Reply #10 on: August 07, 2024, 07:36:17 pm »
@dseligo
No, the plus sign to unhide it... You showed the other way around

Actually we are both wrong. In his image there is some down arrow, not plus or minus. I told him correct line where he needed to click to see following line.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10310
  • Debugger - SynEdit - and more
    • wiki
Re: [SOLVED] Beginner-> IDE-> Source Code(Window)->UnHide lines
« Reply #11 on: August 07, 2024, 07:39:32 pm »
As for the difference in all the folding symbols + / - / arrow / dot ...

There are 2 concepts: Fold and hide.

When you have a "begin" keyword, and you FOLD, then the "begin" itself is still there. The "start line of the block" remains visible. In Lazarus this is called "folding".

When you select some text, the gutter will show a symbol that allows you to hide the lines with the selected text. This includes hiding the start line. None of the lines remain visible => "hiding"
(The un-hide symbol then shows on the line above.


Folding use the + and - as symbols.

Hiding uses the "dot" (in a box) as symbol to hide.
And an arrow in a box to un-hide.

What I can do

  • Full Member
  • ***
  • Posts: 103
Re: [SOLVED] Beginner-> IDE-> Source Code(Window)->UnHide lines
« Reply #12 on: August 07, 2024, 07:53:18 pm »
This was a quick work around for me
IDE->Tools->Options
"Editor...
   Disply...
      Colors..."
---------------------------
Code Folding Tree->"X" Forground->clRed

 

TinyPortal © 2005-2018