IntelliSense Hot Keys
Ctrl + space or
Ctrl + K W
Complete word using the current selection in the list
Ctrl + J or
Ctrl + K L
Pull up the intellisense selection list
Ctrl + K I
Show the declaration of selected identifier in a Quick Info tool tip
Ctrl + Shift Space or
Ctrl + K P
Display for the specified method the name and parameters required
When Intellisense Selection List is displayed:
Ctrl causes the list to be rendered transparent
Showing posts with label Intellisense. Show all posts
Showing posts with label Intellisense. Show all posts
Friday, July 4, 2008
Tuesday, May 20, 2008
Use the force (intellisense, snippets, refactor).
Let go of the compiler. Use the features Luke.
I received feedback one of my posts that a line of code was too complicated for average to starting programmers:
The interesting thing about this line is I did not write it.
I did not even write all of the Line that calls it:
I do recall my thinking as I was creating it. I was thinking I want to loop over a bunch of collection of permutations dealing so I typed in the first letters of 'foreach'. Intellisense kicked in and suggested the 'foreach' snippet. I hit tab twice to accept it and the following code was generated:
foreach (object var in collection_to_loop)
{
}
The snippet highlighted the snippet literals to be replaced. I had not thought what type a permutation would best be. So I used a list of integers 'List'. I already knew I wanted a permutation so naturally the collection would be called permutations. But since I knew I wanted to experiment with yield I turned it into a method. Which left me in the same position as those 'typical' readers. But selecting 'Generate Method Stub' from the context menu resulted in complex type.
What is interesting is how the compiler has moved from nagging us about our mistakes after the fact to proactively helping us write code. So I stop worrying about the compiler and it know worries about me.
I received feedback one of my posts that a line of code was too complicated for average to starting programmers:
private static IEnumerable<list<int>> permutations(int size)
The interesting thing about this line is I did not write it.
I did not even write all of the Line that calls it:
foreach (List<int> permutation in permutations(9))
I do recall my thinking as I was creating it. I was thinking I want to loop over a bunch of collection of permutations dealing so I typed in the first letters of 'foreach'. Intellisense kicked in and suggested the 'foreach' snippet. I hit tab twice to accept it and the following code was generated:
foreach (object var in collection_to_loop)
{
}
The snippet highlighted the snippet literals to be replaced. I had not thought what type a permutation would best be. So I used a list of integers 'List
What is interesting is how the compiler has moved from nagging us about our mistakes after the fact to proactively helping us write code. So I stop worrying about the compiler and it know worries about me.
Subscribe to:
Posts (Atom)