Solved

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

Posted on 2011-03-15
6
472 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
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
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 …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…

806 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