Solved

Visual Studio - Want to default "Insert File as Text" to my templates directory.

Posted on 2011-03-15
6
473 Views
Last Modified: 2012-05-11
I've created a directory of about 20 files that contain VB templates.  Each time I select Edit / Insert File As Text (image 1), Visual Studio defaults to the project folder.  How can I tell visual studio, "Hey, default to my templates folder."
Image-1.png
0
Comment
Question by:jdana
  • 3
  • 3
6 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 35148575
I believe that Insert File as Text only works when you have a code module open, so I don't understand the comment, "Visual Studio defaults to the project folder".
0
 

Author Comment

by:jdana
ID: 35188993
I'm working on a project named "Park Asset" the project folder is named ParkAsset (Image 1).  When I'm editing a code module and I select Edit / Insert File as Text, Visual Studio defaults to this folder.  It defaults to this folder every time I select Edit / Insert File as Text.
Project-Folder.png
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 35189099
For me, it adds to the currently open code module.  I don't think that there is any option to control that folder.
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:jdana
ID: 35191808
Isn't the intent of "Add File as Text" to add template VB or CS that I've generated previously?
0
 
LVL 96

Assisted Solution

by:Bob Learned
Bob Learned earned 500 total points
ID: 35191961
No, I believe that the "Insert File as Text" is to import the text from the file, and to insert into the current file.

Insert File As Text
http://blogs.msdn.com/b/zainnab/archive/2010/02/24/insert-file-as-text-vstipedit0021.aspx

Let's say you have a chunk of code in a file and you want it in another file, too.  Just go to Edit -> Insert File As Text.
0
 

Author Closing Comment

by:jdana
ID: 35194879
Thanks for sticking with me on this one.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question