What about nullable property templates?
Are they existing? If not pni or pin for public int? $propname$ { get; set; }
(I found your templates yesterday and already like them a lot :-) and I like the idea of those templates...)
It's a possibility, also worth investigating if the ? character can be part of the template. From: HopfenspirgerSent: Friday, 12 August 2016 09:17To: JetBrains/mnemonicsReply To: JetBrains/mnemonicsSubject: [JetBrains/mnemonics] What about nullable property templates? (#13)Are they existing? If not pni or pin for public int? $propname$ { get; set; }
(I found your templates yesterday and already like them a lot :-) and I like the idea of those templates...)
—You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/JetBrains/mnemonics","title":"JetBrains/mnemonics","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/JetBrains/mnemonics"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"What about nullable property templates? (#13)"}],"action":{"name":"View Issue","url":"https://github.com/JetBrains/mnemonics/issues/13"}}}
Yes, the ? can be part of the template. I just testet the following template and it works :-) public long? $propname${ get; set; }$END$
What I mean is, whether or not the ? can be part of the shorthand used to invoke the template, and whether having it as part of the template actually autocompletes/expands as expected. Reason I'm curious is I remember problems using the . (period) in the template shorthand - this didn't work IIRC.
On 12 August 2016 at 15:33, Hopfenspirger [email protected] wrote:
Yes, the ? can be part of the template. I just testet the following template and it works :-) public long? $propname${ get; set; }$END$
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JetBrains/mnemonics/issues/13#issuecomment-239462623, or mute the thread https://github.com/notifications/unsubscribe-auth/AAcoNtfGyLM6WE5InDrHlC_lIqjvdltlks5qfIQpgaJpZM4Ji3jN .
Dmitri Nesteruk [email protected] skype: dmitri.nesteruk
I just tried it. A dot ist not working because it is one of the "execute" signs for intellisense but a ? ist working. Still I would prefer n instead of ? for nullable because it is faster to type, at least on a german keyboard...