473,398 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Code Snippet Insertion - Where Documented

Hi and Happy Holidays,

While typing in a member function an errant finger triggered a bit of code
snippet that throws a "not yet implemented" exception if the member is
called. It happened three times in two days but I haven't been able to
duplicate it purposely. Just what is the keying that does this and where is
it
documented? And is "Code Snippet Insertion" the correct term for this
mechanism?

Thanks,
Gary
Nov 29 '06 #1
1 1214
Hi Gary,

If you type your method call before youve implemented your method

eg

string a = GetMyString();

youll notice that there is a little line appears under the first letter
(the same happens when you derive from an abstract class or interface)

Pressing ctrl + dot opens the menu and pressing enter will generate a
stub for your method whihc wil contain a not implemented exception.

There may be a faster way and if anyones knows Id be learn to learn of
it :-)

These are indeed snippets so I guess Code Snippet insertion is not a
bad term to use. As for the documentation Im not sure, I only found out
when someone at a seminar showed me

You can also invoke any of the other snippets by typing the name which
appears in the intellisense and then pressing the tab key

eg
ctor - for a constructor
prop (particularly useful) - for get and set properties
switch (if switching on an enum it will populate the case statements
for you) - for a switch statement

Hope this answers your question

On Nov 29, 4:05 pm, "Gary Brown" <garyjbr...@charter.netwrote:
Hi and Happy Holidays,

While typing in a member function an errant finger triggered a bit of code
snippet that throws a "not yet implemented" exception if the member is
called. It happened three times in two days but I haven't been able to
duplicate it purposely. Just what is the keying that does this and where is
it
documented? And is "Code Snippet Insertion" the correct term for this
mechanism?

Thanks,
Gary
Nov 29 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Bob Rock | last post by:
Hello, is there a tool around that given an assembly shows the referenced assemblies??? Any code snippet to do this programmatically??? Regards, Bob Rock
20
by: Patrick Guio | last post by:
Dear all, I have some problem with insertion operator together with namespace. I have a header file foo.h containing declaration of classes, typedefs and insertion operators for the typedefs in...
5
by: John N. | last post by:
Hi All, Here I have a linked list each containing a char and is double linked. Then I have a pointer to an item in that list which is the current insertion point. In this funtion, the user...
4
by: bennett | last post by:
How can I do a loop from 1 to 5, where on line 1 I print 1 space followed by a button, on line 2 I print 2 spaces followed by a button, on line 3 I print 3 spaces followed by a button, etc.? I...
10
by: Schizoid Man | last post by:
I have two classes. The first one called Program contains the Main() method. This class ideally should be able to call a method called normDensity from another class NormalDistribution code...
5
by: rodchar | last post by:
hey all, i noticed when i'm in the code-behind and i type, let's just say the word IF, well in the auto-complete list the tool tip show it as a code-snippet. Is there a key-stroke to stub the...
13
by: frk.won | last post by:
I am interested in learning how to use the VS 2005 code snippets. However, I wish to know what are the best ways to source control the code snippets? Are there any source safe/subversion...
6
by: StreamLogic | last post by:
All, I'd like to hear how other developers/architects keep track of old scripts, code snippets, relevant URLs, etc. I think most developers have an area where they keep reusable code they would...
4
by: tshad | last post by:
I was watching a video that used a code snippet to create a property and when you type "prop" tab tab, it would create the private variable as well as the property definitions with the private...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.