Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 remember scroll position / selection per file?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

davec
New Member

USA
4 Posts

Posted - Dec 15 2011 :  1:18:14 PM  Show Profile  Reply with Quote
i'd really love it if i could open a file and be back to where i was the last time i had the file open.

currently, the selection/cursor position is lost, and the scroll position is lost, you're left back at the very top of the file.

is there a way to have VA remember these settings that i'm missing?

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Dec 15 2011 :  6:53:45 PM  Show Profile  Reply with Quote
There is a command you can bind to do this: VAssistX.NavigateBack. Just open the following dialog:

Tools -> Options -> Environment -> Keyboard

and type the command name to the editbox and bind a keyboard shortcut for it. Make sure you choose "Text Editor" under "Use new shortcut in".

This command will move your caret to the previous position (e.g. after using alt+g on a symbol name). It means that even if you close a file, this command will re-open it and move the caret back to the line where it was before. We also have an icon for this command so you can place it on the toolbar.

Edited by - accord on Dec 15 2011 6:54:43 PM
Go to Top of Page

davec
New Member

USA
4 Posts

Posted - Dec 15 2011 :  6:56:27 PM  Show Profile  Reply with Quote
hmm, that's nice but i think you're not understanding.

i want this to be transparent, i'm not using any shortcut or command. i'm just typing away, now i'm done. close the window
come back tomorrow, open the same file, i want the cursor and scroll position to be remembered from the last time i had the file open.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Dec 18 2011 :  2:08:14 PM  Show Profile  Reply with Quote
Interesting idea. However, I think it's a personal matter of taste - closing a window can be considered as a "fresh" start - I finished working on the file for now. On the other hand, you can keep tens of files open and open them as it would closed - Visual Studio will switch to the file (keeping your caret position) instead of opening it again. I mean is there any specific reason you would like to close the file? Pressing alt+shift+o can be a great way switching between or opening files.
What do you think?
Does anyone else have an opinion on this? I'm wondering whether it can be "disturbing" for some. With current behavior you can clearly see if a window was newly open or just switched to.

Edited by - accord on Dec 18 2011 2:09:17 PM
Go to Top of Page

davec
New Member

USA
4 Posts

Posted - Dec 18 2011 :  2:17:49 PM  Show Profile  Reply with Quote
obviously it would be a pref that you could turn on or off.

because when you have a large project, with large files, you want to come back to where you were IN THE FILE the next time you open the file. which may come tomorrow. or next week. after a restart.

if you *WANT* to start fresh, then drag the scroll bar to the top. the opposite is NOT simple, you have to drag the scroll bar to... umm... where was that line? i don't know! that's the problem.

other IDEs do this. it's not very difficult. but it is a pain if you're used to it but don't get to have it.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Dec 19 2011 :  2:20:12 PM  Show Profile  Reply with Quote
Thank you for the explanation. I will put in a feature request for this.
Out of interest, can you please name some IDEs that does this?
Go to Top of Page

davec
New Member

USA
4 Posts

Posted - Dec 19 2011 :  2:29:05 PM  Show Profile  Reply with Quote
Xcode does this. if i could write windows code in Xcode, i would.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Dec 19 2011 :  6:28:51 PM  Show Profile  Reply with Quote
Thank you for sharing this. I have put in a feature request to see what the developers make of it:

case=63468
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000