LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Undo/redo code views ? (https://www.linuxquestions.org/questions/programming-9/undo-redo-code-views-741901/)

tirengarfio 07-22-2009 05:50 AM

Undo/redo code views ?
 
Hi,

im wondering if is there any IDE which undo and redo the views of my code.

Ciao

penguiniator 07-22-2009 09:23 AM

You may want to clarify what you mean by "undo and redo the views".

tirengarfio 07-23-2009 05:04 AM

Quote:

Originally Posted by penguiniator (Post 3616424)
You may want to clarify what you mean by "undo and redo the views".

I have for example a code of 1000 lines.

In a concret moment im watching the part of the code that goes from line 275 to 327, Then i decide to go to other part of the code, for example to the beginning of the code (Ctrl+Home), i check whatever, and then what i would like is going again to the view that i had before (lines 275 to 327) for example with Shift + Ctrl + Z.

Do you understand me know?

GrapefruiTgirl 07-23-2009 05:40 AM

If I understand the question (and I may not) the OP is looking for a way, or an editor which has a way (like a keyboard shortcut) to jump to/from particular sections of the code in the editor. I believe something like setting a bookmark would address the issue, allowing the programmer to jump around to bookmarks set throughout the code.

Based on the OP's use of the term 'IDE' I am guessing that the programming language is a C variant.

Have I got this right?

Sasha

tirengarfio 07-23-2009 05:56 AM

Quote:

Originally Posted by GrapefruiTgirl (Post 3617551)
If I understand the question (and I may not) the OP is looking for a way, or an editor which has a way (like a keyboard shortcut) to jump to/from particular sections of the code in the editor. I believe something like setting a bookmark would address the issue, allowing the programmer to jump around to bookmarks set throughout the code.

Yes, thats right. Dont you think that function would be usefull ??


Quote:

Originally Posted by GrapefruiTgirl (Post 3617551)
Based on the OP's use of the term 'IDE' I am guessing that the programming language is a C variant.

I dont understand this..

GrapefruiTgirl 07-23-2009 06:01 AM

Quote:

Originally Posted by tirengarfio (Post 3616212)
Hi,

im wondering if is there any IDE which undo and redo the views of my code.

Ciao

The above is your first post. The use of 'IDE' to me implies you are working on C language code, but I'm guessing.

And yes, it does sound useful. Many text editors allow bookmarking through the code, but I personally don't do any programming in an IDE so I cannot suggest one that might let you bookmark.

Sasha

tirengarfio 07-23-2009 06:46 AM

Thanks, "bookmarking" is the word i was looking for...

penguiniator 07-23-2009 02:44 PM

If you are willing to use a VERY different editor, Vim will do what you want. It DOES have a steep learning curve, but you can be at least as productive in VIM as in your current editor in a remarkably short time, and it can do way more than most editors with very little typing and without having to use the mouse.

bannock 07-23-2009 03:57 PM

Also sometimes called 'breadcrumbs'
Does anyone know how to do this in emacs by the way? It would be nice to be able to undo and redo the view changes in a particular window, similar to what you can do with edit changes.

ntubski 07-23-2009 09:57 PM

For Emacs see Book Marks. Popping the mark can also be useful since many commands will set the mark before moving so you don't have to remember to put a bookmark in advance (see Mark Commands).


All times are GMT -5. The time now is 06:55 PM.