T O P I C R E V I E W |
davec |
Posted - Dec 15 2011 : 1:18:14 PM 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? |
7 L A T E S T R E P L I E S (Newest First) |
accord |
Posted - Dec 19 2011 : 6:28:51 PM Thank you for sharing this. I have put in a feature request to see what the developers make of it:
case=63468 |
davec |
Posted - Dec 19 2011 : 2:29:05 PM Xcode does this. if i could write windows code in Xcode, i would. |
accord |
Posted - Dec 19 2011 : 2:20:12 PM 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? |
davec |
Posted - Dec 18 2011 : 2:17:49 PM 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. |
accord |
Posted - Dec 18 2011 : 2:08:14 PM 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. |
davec |
Posted - Dec 15 2011 : 6:56:27 PM 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. |
accord |
Posted - Dec 15 2011 : 6:53:45 PM 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. |