Posts tagged 'Opening Files'

Saturday, October 4, 2014

Tip 2.26: How to customize the number of items shown in the Recent Files lists (and where to find those lists)

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



This tip explores the Recent Files options, found under Tools–Options–Environment–General.



The Items Shown In Window Menu option controls the number of items to display in the Window menu. For example, if you set the option to 5, you will get only 5 items in the Window menu, as shown here:



The Items Shown In Recently Used Lists controls the number of items found in the File–Recent Files and File–Recent Projects lists. When it is set to 3, you'll see only 3 files in these lists, as shown here:



Happy Programming! =)
Posted by Nils-Holger at 12:19 PM with 444 comments.

Friday, October 3, 2014

Tip 2.25: How to customize what directory the File–Open–File dialog box opens to

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



This tip is pretty straightforward. Under Tools–Options–Environment–Documents, there's the Open File Using Directory Of Currently Active Document option. When she first read this option, it took her a few seconds to think, "What's the open file thingy?" It's referring to the File–Open–File dialog box.

If you have this option checked, you'll open to the directory of the currently active document in the editor (the doc with the focus), as shown in the next image.



If you do not have this option checked, the File–Open–File dialog directory displays content as an MRU (most-recently used) list, opening to the last directory used to open a file.

Happy Programming! =)
Posted by Nils-Holger at 12:04 PM with 444 comments.

Thursday, October 2, 2014

Tip 2.24: How to edit a read-only file in Visual Studio

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



In Tools–Options–Environment–Documents, there's the option Allow Editing Of Read-Only Files; Warn When Attempt To Save. If this option is checked (her personal preference) and you attempt to save, you'll get prompted whether you want to overwrite the document or save it as something else. Her thoughts are—if she's editing the file, she wants to overwrite it eventually.



If this option isn't checked and you attempt to edit the file, you'll get prompted whether to make the file writeable or perform an in-memory edit.



Happy Programming! =)
Posted by Nils-Holger at 12:13 PM with 437 comments.

Wednesday, October 1, 2014

Tip 2.23: How to automatically refresh an open document in the editor

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



Under Tools–Options–Environment–Documents, there's the option to Detect When A File Is Changed Outside The Environment. Under it is the second option, to Autoload Changes, If Saved.

Sara Aside

She can't imagine working without having the first check box checked. However, as for the second one, she doesn't think she's brave enough to enable it.


If only the first check box is checked, you'll get this prompt:



If you do a lot of modifying of files outside Visual Studio, she could see this dialog box getting annoying. But since the option is global and sticky across Visual Studio sessions, she wouldn't want to forget that she had it checked. But then again, this is coming from a very paranoid, risk-averse tester.

Happy Programming! =)
Posted by Nils-Holger at 11:30 AM with 666 comments.

Friday, January 24, 2014

Tip 2.26: How to customize the number of items shown in the Recent Files lists (and where to find those lists)

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



This tip explores the Recent Files options, found under Tools–Options–Environment–General.



The Items Shown In Window Menu option controls the number of items to display in the Window menu. For example, if you set the option to 5, you will get only 5 items in the Window menu, as shown here:



The Items Shown In Recently Used Lists controls the number of items found in the File–Recent Files and File–Recent Projects lists. When it is set to 3, you'll see only 3 files in these lists, as shown here:



Happy Programming! =)
Posted by Nils-Holger at 1:17 PM with 438 comments.

Thursday, January 23, 2014

Tip 2.25: How to customize what directory the File–Open–File dialog box opens to

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



This tip is pretty straightforward. Under Tools–Options–Environment–Documents, there's the Open File Using Directory Of Currently Active Document option. When she first read this option, it took her a few seconds to think, "What's the open file thingy?" It's referring to the File–Open–File dialog box.

If you have this option checked, you'll open to the directory of the currently active document in the editor (the doc with the focus), as shown in the next image.



If you do not have this option checked, the File–Open–File dialog directory displays content as an MRU (most-recently used) list, opening to the last directory used to open a file.

Happy Programming! =)
Posted by Nils-Holger at 1:58 PM with 433 comments.

Wednesday, January 22, 2014

Tip 2.24: How to edit a read-only file in Visual Studio

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



In Tools–Options–Environment–Documents, there's the option Allow Editing Of Read-Only Files; Warn When Attempt To Save. If this option is checked (her personal preference) and you attempt to save, you'll get prompted whether you want to overwrite the document or save it as something else. Her thoughts are—if she's editing the file, she wants to overwrite it eventually.



If this option isn't checked and you attempt to edit the file, you'll get prompted whether to make the file writeable or perform an in-memory edit.



Happy Programming! =)
Posted by Nils-Holger at 1:16 PM with 643 comments.

Tuesday, January 21, 2014

Tip 2.23: How to automatically refresh an open document in the editor

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



Under Tools–Options–Environment–Documents, there's the option to Detect When A File Is Changed Outside The Environment. Under it is the second option, to Autoload Changes, If Saved.

Sara Aside

She can't imagine working without having the first check box checked. However, as for the second one, she doesn't think she's brave enough to enable it.


If only the first check box is checked, you'll get this prompt:



If you do a lot of modifying of files outside Visual Studio, she could see this dialog box getting annoying. But since the option is global and sticky across Visual Studio sessions, she wouldn't want to forget that she had it checked. But then again, this is coming from a very paranoid, risk-averse tester.

Happy Programming! =)
Posted by Nils-Holger at 1:28 PM with 2 comments.

Monday, January 20, 2014

Tip 2.22: How to reuse the same editor window when opening files

"Visual Studio Tips, 251 ways to improve your Productivity" in Visual Studio, courtesy of 'Sara Ford'

Sara Ford's Blog



Go to Tools–Options–Environment–Documents, and check the Reuse Current Document Window, If Saved option to give this tip a try.



If the current document window is dirty (meaning you've made a modification but haven't saved it yet), the next document opens in its own document window. However, if the current document is saved, the new document just opens over it.

She tried using this from time to time when she owned testing it, but it wasn't for her.

Happy Programming! =)
Posted by Nils-Holger at 1:14 PM with 401 comments.

Friday, May 17, 2013

Tip 2.26: How to customize the number of items shown in the Recent Files lists (and where to find those lists)

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



This tip explores the Recent Files options, found under Tools–Options–Environment–General.



The Items Shown In Window Menu option controls the number of items to display in the Window menu. For example, if you set the option to 5, you will get only 5 items in the Window menu, as shown here:



The Items Shown In Recently Used Lists controls the number of items found in the File–Recent Files and File–Recent Projects lists. When it is set to 3, you'll see only 3 files in these lists, as shown here:



Happy Programming! =)
Posted by Nils-Holger at 1:21 PM with 610 comments.

Thursday, May 16, 2013

Tip 2.25: How to customize what directory the File–Open–File dialog box opens to

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



This tip is pretty straightforward. Under Tools–Options–Environment–Documents, there's the Open File Using Directory Of Currently Active Document option. When she first read this option, it took her a few seconds to think, "What's the open file thingy?" It's referring to the File–Open–File dialog box. If you have this option checked, you'll open to the directory of the currently active document in the editor (the doc with the focus), as shown in the next image.



If you do not have this option checked, the File–Open–File dialog directory displays content as an MRU (most-recently used) list, opening to the last directory used to open a file.

Happy Programming! =)
Posted by Nils-Holger at 12:23 PM with 347 comments.

Wednesday, May 15, 2013

Tip 2.24: How to edit a read-only file in Visual Studio

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



In Tools–Options–Environment–Documents, there's the option Allow Editing Of Read-Only Files; Warn When Attempt To Save. If this option is checked (her personal preference) and you attempt to save, you'll get prompted whether you want to overwrite the document or save it as something else. Her thoughts are—if she's editing the file, she wants to overwrite it eventually.



If this option isn't checked and you attempt to edit the file, you'll get prompted whether to make the file writeable or perform an in-memory edit.



Happy Programming! =)
Posted by Nils-Holger at 1:25 PM with 448 comments.

Tuesday, May 14, 2013

Tip 2.23: How to automatically refresh an open document in the editor

"Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio", courtesy of 'Sara Ford'

Sara Ford's Blog



Under Tools–Options–Environment–Documents, there's the option to Detect When A File Is Changed Outside The Environment. Under it is the second option, to Autoload Changes, If Saved.

Sara Aside

She can't imagine working without having the first check box checked. However, as for the second one, she doesn't think she's brave enough to enable it.
If only the first check box is checked, you'll get this prompt:



If you do a lot of modifying of files outside Visual Studio, she could see this dialog box getting annoying. But since the option is global and sticky across Visual Studio sessions, she wouldn't want to forget that she had it checked. But then again, this is coming from a very paranoid, risk-averse tester.

Happy Programming! =)
Posted by Nils-Holger at 1:08 PM with 440 comments.

Monday, May 13, 2013

Tip 2.22: How to reuse the same editor window when opening files

"Visual Studio Tips, 251 ways to improve your Productivity" in Visual Studio, courtesy of 'Sara Ford'

Sara Ford's Blog



Go to Tools–Options–Environment–Documents, and check the Reuse Current Document Window, If Saved option to give this tip a try.



If the current document window is dirty (meaning you've made a modification but haven't saved it yet), the next document opens in its own document window. However, if the current document is saved, the new document just opens over it. She tried using this from time to time when she owned testing it, but it wasn't for her.

Happy Programming! =)
Posted by Nils-Holger at 1:54 PM with 865 comments.