Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2011-03-15
6
Medium Priority
?
493 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 2000 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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 2000 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: 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.

Question has a verified solution.

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

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…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses

877 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