How do I escape from a Snippet? (Vb.Net)
Asked Answered
W

5

6

In C# when I am done entering the fields of a snippet, I can hit Enter to get to the next line. What is the equivalent Key in VB?

Edit: I prefer not to use the mouse.

Wanyen answered 23/9, 2008 at 19:22 Comment(0)
W
4

Wow... I sure hope they improve this soon.

Meanwhile, in case anyone cares, I created an additional replacement field ($Enter$) at the end of my custom snippet. This allows me to [tab] through the fields and then type [DownArrow] [Enter] when I reach the end of the list.

Something like....

private _$PropertyName$ As $PropertyType$
Public WriteOnly Property $PropertyName$() As $PropertyType$
     Set(ByVal value as $PropertyType$)
          _$PropertyName$ = value
     End Set
End Property $Enter$
Wanyen answered 23/9, 2008 at 19:50 Comment(0)
P
1

Don't know the key, but I use right-click -> Hide Snippet Highlighting.

Primulaceous answered 23/9, 2008 at 19:23 Comment(0)
B
1

It turns out there isn't one- VB.NET snippet support lags behind that of c#

There's no support for

  • $end$ in the snippet
  • ClassName() or other functions
  • snippet hints.

And there's field tab issues as well - in c# you only tab through unique fields. In vb.net you tab through all.

In short, using snippets n vb.net is not as fun.

Bohlen answered 23/9, 2008 at 19:30 Comment(0)
I
0

At any point while you're editing a snippet, you can use the up/down arrow keys to get out of it. Or have I misunderstood what you're trying to do?

Iong answered 23/9, 2008 at 21:25 Comment(1)
In C#, hitting Enter takes you to the End of the Snippet.Wanyen
D
0

Can't you just use the down arrow key? Maybe I'm misunderstanding your question.

For the record, VB snippets do support tooltips (hints) and help URLs.

Duhl answered 24/9, 2008 at 0:33 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.