LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-22-2009, 05:50 AM   #1
tirengarfio
Member
 
Registered: Nov 2006
Posts: 45

Rep: Reputation: 15
Undo/redo code views ?


Hi,

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

Ciao
 
Old 07-22-2009, 09:23 AM   #2
penguiniator
Member
 
Registered: Feb 2004
Location: Olympia, WA
Distribution: SolydK
Posts: 442
Blog Entries: 3

Rep: Reputation: 60
You may want to clarify what you mean by "undo and redo the views".
 
Old 07-23-2009, 05:04 AM   #3
tirengarfio
Member
 
Registered: Nov 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by penguiniator View Post
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?
 
Old 07-23-2009, 05:40 AM   #4
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
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
 
Old 07-23-2009, 05:56 AM   #5
tirengarfio
Member
 
Registered: Nov 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by GrapefruiTgirl View Post
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 View Post
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..

Last edited by tirengarfio; 07-23-2009 at 05:57 AM.
 
Old 07-23-2009, 06:01 AM   #6
GrapefruiTgirl
Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by tirengarfio View Post
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

Last edited by GrapefruiTgirl; 07-23-2009 at 08:10 AM. Reason: Spelt my own name worng :p
 
Old 07-23-2009, 06:46 AM   #7
tirengarfio
Member
 
Registered: Nov 2006
Posts: 45

Original Poster
Rep: Reputation: 15
Thanks, "bookmarking" is the word i was looking for...
 
Old 07-23-2009, 02:44 PM   #8
penguiniator
Member
 
Registered: Feb 2004
Location: Olympia, WA
Distribution: SolydK
Posts: 442
Blog Entries: 3

Rep: Reputation: 60
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.
 
Old 07-23-2009, 03:57 PM   #9
bannock
LQ Newbie
 
Registered: Jun 2009
Location: Toronto
Distribution: Ubuntu, Fedora
Posts: 24

Rep: Reputation: 18
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.
 
Old 07-23-2009, 09:57 PM   #10
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian
Posts: 2,430

Rep: Reputation: 823Reputation: 823Reputation: 823Reputation: 823Reputation: 823Reputation: 823Reputation: 823
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).

Last edited by ntubski; 07-23-2009 at 09:57 PM. Reason: forgot word
 
  


Reply

Tags
code, programming


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
new hard drive, resized partitions, need to redo grub dcalki Linux - Newbie 6 09-30-2007 10:30 PM
Yum redo needed Lsatenstein Fedora 6 03-09-2007 06:03 PM
A command to redo my network connections? donJulio Slackware 3 09-17-2005 07:38 PM
partition mount redo 1speedjb Linux - Newbie 4 01-05-2005 09:38 AM
Stuff I need to redo when I reboot sammckee Linux - Newbie 3 09-27-2003 08:57 AM


All times are GMT -5. The time now is 03:33 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration