{"id":87,"date":"2019-06-16T04:38:03","date_gmt":"2019-06-16T04:38:03","guid":{"rendered":"https:\/\/www.great-white-software.com\/blog\/?p=87"},"modified":"2019-06-21T00:54:28","modified_gmt":"2019-06-21T00:54:28","slug":"handy-method-editor-tips","status":"publish","type":"post","link":"https:\/\/www.great-white-software.com\/blog\/2019\/06\/16\/handy-method-editor-tips\/","title":{"rendered":"Handy Method Editor tips"},"content":{"rendered":"\n<p>Did you know that you can write, in the declaration pane for the method editor, the entire declaration and the editor will rip it apart for you ?<\/p>\n\n\n\n<p>So instead of having type the name, tab, parameters, tab, return type, tab, select a scope you can type<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Private Foo(i as integer) as string<\/pre>\n\n\n\n<p>and press tab or return and it will all get split into the right spots.<\/p>\n\n\n\n<p>Like this<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"525\" height=\"273\" src=\"https:\/\/i0.wp.com\/www.great-white-software.com\/blog\/wp-content\/uploads\/2019\/06\/before.png?resize=525%2C273&#038;ssl=1\" alt=\"\" class=\"wp-image-89\" srcset=\"https:\/\/i0.wp.com\/www.great-white-software.com\/blog\/wp-content\/uploads\/2019\/06\/before.png?w=834&amp;ssl=1 834w, https:\/\/i0.wp.com\/www.great-white-software.com\/blog\/wp-content\/uploads\/2019\/06\/before.png?resize=300%2C156&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.great-white-software.com\/blog\/wp-content\/uploads\/2019\/06\/before.png?resize=768%2C400&amp;ssl=1 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>Press Enter and get<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"525\" height=\"437\" src=\"https:\/\/i0.wp.com\/www.great-white-software.com\/blog\/wp-content\/uploads\/2019\/06\/after.png?resize=525%2C437&#038;ssl=1\" alt=\"\" class=\"wp-image-90\" srcset=\"https:\/\/i0.wp.com\/www.great-white-software.com\/blog\/wp-content\/uploads\/2019\/06\/after.png?w=836&amp;ssl=1 836w, https:\/\/i0.wp.com\/www.great-white-software.com\/blog\/wp-content\/uploads\/2019\/06\/after.png?resize=300%2C250&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.great-white-software.com\/blog\/wp-content\/uploads\/2019\/06\/after.png?resize=768%2C639&amp;ssl=1 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n\n\n\n<p>EDIT : FWIW you can do this in a property as well that isn&#8217;t a computed property. But not in a constant (yeah you can probably blame me for that)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Did you know that you can write, in the declaration pane for the method editor, the entire declaration and the editor will rip it apart for you ? So instead of having type the name, tab, parameters, tab, return type, tab, select a scope you can type Private Foo(i as integer) as string and press &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.great-white-software.com\/blog\/2019\/06\/16\/handy-method-editor-tips\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Handy Method Editor tips&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[6,3],"class_list":["post-87","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-tips","tag-xojo"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/posts\/87","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/comments?post=87"}],"version-history":[{"count":5,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/posts\/87\/revisions"}],"predecessor-version":[{"id":139,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/posts\/87\/revisions\/139"}],"wp:attachment":[{"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/media?parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/categories?post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/tags?post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}