
{"id":1850,"date":"2012-04-12T20:12:53","date_gmt":"2012-04-12T19:12:53","guid":{"rendered":"http:\/\/www.matthijskamstra.nl\/blog\/?p=1850"},"modified":"2012-04-19T15:59:43","modified_gmt":"2012-04-19T14:59:43","slug":"moving-from-fdt-to-monodevelop-for-haxe-and-nme","status":"publish","type":"post","link":"https:\/\/www.matthijskamstra.nl\/blog\/2012\/04\/12\/moving-from-fdt-to-monodevelop-for-haxe-and-nme\/","title":{"rendered":"Moving from FDT to MonoDevelop for haXe and NME"},"content":{"rendered":"<p>Before I start with this post I should mention that Joshua Granick (on of the creators of NME) has a post about:<a href=\"http:\/\/www.joshuagranick.com\/blog\/2012\/04\/10\/how-to-install-haxe-nme-and-monodevelop\/\" target=\"_blank\">How to Install Haxe, NME and MonoDevelop<\/a>! That will save me some time and who can explain that better than Joshua.<\/p>\n<p>I wrote something similar when I moved from PC (FlashDevelop) to OSX (FDT) (read my post: <a href=\"http:\/\/www.matthijskamstra.nl\/blog\/index.php\/2010\/06\/16\/moving-from-flashdevelop-to-fdt\/\" target=\"_blank\">moving-from-flashdevelop-to-fdt\/<\/a>). Which also was a reminder when I needed to reinstall or explain it to a college.<\/p>\n<p>Want to know <a href=\"http:\/\/www.matthijskamstra.nl\/blog\/index.php\/2012\/04\/10\/haxe-and-nme-ide-and-editors-osx\/\">why<\/a> I&#8217;m using MonoDevelop?<br \/>\nMoving from FDT to MonoDevelop is not a big step (my opinion \ud83d\ude1b )<\/p>\n<div class='highlight'>\nAfter reading my post, it looks like I&#8217;m leaving FDT&#8230; That is not what I&#8217;m doing: I&#8217;ll keep on using it for AS3.<br \/>\nBut I hope to &#8216;take&#8217; some features from FDT to MonoDevelop\n<\/div>\n<h3>Adding your own short-cuts \/ key-binding<\/h3>\n<p>First let add some features that I use a lot:<br \/>\n<code>MonoDevelop > Preferences... (CMD+,) > Key Bindings<\/code><br \/>\nsearch for  &#8220;comment&#8221;<br \/>\nToggle Line Comment : Edit Binding > (CMD + 7)<br \/>\nsearch for  &#8220;case&#8221;<br \/>\nUppercase Selection : Edit Binding > (CTRL + SHIFT + X)<br \/>\nLowercase Selection : Edit Binding > (CTRL + SHIFT + Y)<br \/>\nsearch for &#8220;template&#8221;<br \/>\nInsert template.. : Edit Binding > (CMD + SHIFT + 1) [doesn&#8217;t work yet]<\/p>\n<h3>Using default Short cuts &#8211; (besides the &#8216;normal&#8217; short cuts)<\/h3>\n<p>Then there are some default shortcuts you use a lot:<br \/>\n<strong>run<\/strong> >> <code>ALT + CMD + enter<\/code><br \/>\n<strong>debug<\/strong> >> <code>CMD + enter<\/code> (doesn&#8217;t work)<br \/>\n<strong>move the line or highlighted section down<\/strong> >> <code>ALT + ARROWDOWN<\/code><br \/>\n<strong>move the line or highlighted section up<\/strong> >> <code>ALT + ARROWUP<\/code><br \/>\n<strong>show completion window<\/strong> >> <code>ALT + SPACE<\/code><\/p>\n<h3>Adding personal info<\/h3>\n<p>Don&#8217;t have to explain this &#8230; right?<br \/>\n<code>MonoDevelop > Preferences... (CMD+,) > Author Information<\/code><\/p>\n<h3>Changing settings<\/h3>\n<p>Perhaps this is very personal, but I&#8217;m not writing this for you alone (it&#8217;s also a reminder to myself!)<br \/>\n<code>MonoDevelop > Preferences... (CMD+,) > Text Editor > Behavior > <\/code><\/p>\n<ul>\n<li>check: Insert matching brace<\/li>\n<li>check: Smart semicolon placement<\/li>\n<li>check: Enable on the fly code formatting (doesn&#8217;t do anything)<\/li>\n<li>check: Format document on save (doesn&#8217;t do anything)<\/li>\n<\/ul>\n<p>and<br \/>\n<code>MonoDevelop > Preferences... (CMD+,) > Text Editor > Behavior > XML<\/code><\/p>\n<ul>\n<li>check all<\/li>\n<\/ul>\n<p>Moving on:<br \/>\n<code>MonoDevelop > Preferences... (CMD+,) > Text Editor > Syntax Highlighting<\/code><br \/>\nI installed Monokai for <a href=\"http:\/\/blog-of-darius.blogspot.com\/2012\/01\/monokai-theme-for-monodevelop.html\" target=\"_blank\">Darius Kucinskas<\/a>: you can get it from <a href=\"https:\/\/github.com\/dkucinskas\/MonoDevelop-Styles\" target=\"_blank\">github<\/a>. That because I use it on TextMate and gotten use to it&#8230;.<br \/>\nJoshua Granick has created a <a href=\"https:\/\/twitter.com\/#!\/singmajesty\/status\/189520105913335808\" target=\"_blank\">FlashDevelop color scheme<\/a> (if there are people who want to move from PC to Mac\/Linux).<\/p>\n<h3>Templates\/snippets<\/h3>\n<p>And then the most interesting&#8230; the one that doesn&#8217;t seems to be working<br \/>\n<code>MonoDevelop > Preferences... (CMD+,) > Text Editor > Code Templates<\/code><br \/>\nCode templates are awesome and speed up your development a lot (create a getter\/setter in just one click for example)<br \/>\nJust do the following:<br \/>\n<code>Edit > Insert template...<\/code><br \/>\nAnd remember that the mime type is:<br \/>\n<strong>mime:<\/strong> <code>text\/x-haxe<\/code><br \/>\nIt really doesn&#8217;t matter what you do&#8230; for example <code>\/\/ test<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.matthijskamstra.nl\/blog\/wp-content\/uploads\/Screen-shot-2012-04-12-at-10.46.03.png\" alt=\"\" title=\"PullDown\" width=\"398\" height=\"463\" class=\"alignnone size-full wp-image-1870\" srcset=\"https:\/\/www.matthijskamstra.nl\/blog\/wp-content\/uploads\/Screen-shot-2012-04-12-at-10.46.03.png 398w, https:\/\/www.matthijskamstra.nl\/blog\/wp-content\/uploads\/Screen-shot-2012-04-12-at-10.46.03-257x300.png 257w\" sizes=\"auto, (max-width: 398px) 100vw, 398px\" \/><br \/>\n<strong>but then only bugs&#8230;<\/strong><br \/>\n<img decoding=\"async\" src=\"http:\/\/www.matthijskamstra.nl\/blog\/wp-content\/uploads\/Screen-shot-2012-04-12-at-00.40.00.png\" alt=\"\" title=\"Errors\" width=\"500\" class=\"alignnone size-full wp-image-1871\" srcset=\"https:\/\/www.matthijskamstra.nl\/blog\/wp-content\/uploads\/Screen-shot-2012-04-12-at-00.40.00.png 638w, https:\/\/www.matthijskamstra.nl\/blog\/wp-content\/uploads\/Screen-shot-2012-04-12-at-00.40.00-300x190.png 300w\" sizes=\"(max-width: 638px) 100vw, 638px\" \/><br \/>\n\ud83d\ude41<\/p>\n<p>Something to read: The official statement from MonoDevelop about <a href=\"http:\/\/monodevelop.com\/Developers\/Tasks\/Source_Editing\/Code_Templates\" target=\"_blank\">Code Templates<\/a>.<\/p>\n<h3>I would like to see<\/h3>\n<p>I miss some stuff that I was very use to, so lets make that a NICE-TO-HAVE-LIST<\/p>\n<ul>\n<li>feedback when exporting\/compiling to a target like SublimeText 2 or in the terminal.<\/li>\n<li>code completion on variables and functions<\/li>\n<li>templates that work<\/li>\n<li>duplicate line (up\/down)<\/li>\n<li>code formatting<\/li>\n<li>auto import<\/li>\n<li>code checking while typing\/checking without running<\/li>\n<li>if auto code checking is not going to happen: a shortcut to check your code<\/li>\n<li>automatic &#8220;add to folder&#8221; (for all folders)<\/li>\n<li>TODO added to &#8220;Task list&#8221;<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Before I start with this post I should mention that Joshua Granick (on of the creators of NME) has a post about:How to Install Haxe, NME and MonoDevelop! That will save me some time and who can explain that better than Joshua. I wrote something similar when I moved from PC (FlashDevelop) to OSX (FDT) [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[360],"tags":[411,398,159,412,366,367,368,365,253],"class_list":["post-1850","post","type-post","status-publish","format-standard","hentry","category-haxe","tag-fdt","tag-flash","tag-flashdevelop","tag-haxe","tag-ide","tag-joshua-granick","tag-monodevelop","tag-nme","tag-osx"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/1850","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/comments?post=1850"}],"version-history":[{"count":10,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/1850\/revisions"}],"predecessor-version":[{"id":1905,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/posts\/1850\/revisions\/1905"}],"wp:attachment":[{"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/media?parent=1850"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/categories?post=1850"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.matthijskamstra.nl\/blog\/wp-json\/wp\/v2\/tags?post=1850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}