{"id":553,"date":"2015-01-28T16:00:36","date_gmt":"2015-01-29T00:00:36","guid":{"rendered":"http:\/\/appinventor.pevest.com\/?p=553"},"modified":"2015-01-28T16:00:36","modified_gmt":"2015-01-29T00:00:36","slug":"blocks-editing-tip-arranging-and-collapsing-blocks-in-the-editor","status":"publish","type":"post","link":"https:\/\/coldstreams.com\/appinventor\/2015\/01\/28\/blocks-editing-tip-arranging-and-collapsing-blocks-in-the-editor\/","title":{"rendered":"Blocks Editing Tip: Arranging and collapsing blocks in the editor"},"content":{"rendered":"<p>As you develop your App Inventor program using the Blocks editor, do you find your blocks overlapping\u00a0and crashing in to one another on the screen? You know, like this:<\/p>\n<p><a href=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/01\/AIBlockMess.png\"><img loading=\"lazy\" decoding=\"async\" class=\" size-large wp-image-554 aligncenter\" src=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/01\/AIBlockMess-1024x796.png\" alt=\"AIBlockMess\" width=\"625\" height=\"486\" \/><\/a><\/p>\n<p>You can\u00a0drag the blocks on the screen so they no longer overlap, but dragging each block\u00a0is\u00a0tedious (time consuming). But\u00a0there\u00a0is an easy way to automatically re-arrange the blocks.<\/p>\n<ul>\n<li>Move the mouse pointer to any part of the white space outside the blocks<\/li>\n<li>On Windows, right-click the mouse button<\/li>\n<li>On Mac OS X, press Ctrl and click the mouse button<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<p>A\u00a0pop up menu appears with several options to automatically arrange the blocks:<\/p>\n<p><a href=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/01\/Screen-Shot-2015-01-28-at-3.17.02-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\" size-full wp-image-555 aligncenter\" src=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/01\/Screen-Shot-2015-01-28-at-3.17.02-PM.png\" alt=\"Screen Shot 2015-01-28 at 3.17.02 PM\" width=\"866\" height=\"484\" \/><\/a><\/p>\n<p>The first option &#8220;collapses&#8221; each block into a single line:<\/p>\n<p><a href=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/01\/Screen-Shot-2015-01-28-at-3.20.17-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"  wp-image-556 aligncenter\" src=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/01\/Screen-Shot-2015-01-28-at-3.20.17-PM.png\" alt=\"Screen Shot 2015-01-28 at 3.20.17 PM\" width=\"277\" height=\"479\" \/><\/a><\/p>\n<p>You can right-click again and choose <em>Expand Blocks<\/em> &#8211; or you can right click on individual collapsed blocks to display a pop up menu and an option to expand only the selected block. (You can also right click on a block and collapse individual blocks of code.)<\/p>\n<p>To arrange the blocks into a vertical order, select the <em>Arrange Blocks Vertically<\/em> option. The block are then arranged into a vertical column up to the maximum number that fit on the screen in your browser window. If there are more blocks (and there always are more blocks!), the additional blocks will appear in vertical columns to the right. You may have to use the scroll bars to see where the blocks were relocated!<\/p>\n<p><a href=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/01\/AIBlocksVertical.png\"><img loading=\"lazy\" decoding=\"async\" class=\" size-large wp-image-557 aligncenter\" src=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/01\/AIBlocksVertical-1024x1024.png\" alt=\"AIBlocksVertical\" width=\"625\" height=\"625\" \/><\/a><\/p>\n<p><em>Arrange Blocks Horizontally<\/em> places the block groups across the screen:<\/p>\n<p><a href=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/01\/AIHorizonatal.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-558\" src=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/01\/AIHorizonatal-1024x265.png\" alt=\"AIHorizonatal\" width=\"625\" height=\"162\" \/><\/a><\/p>\n<p>This tip may\u00a0make your programming more productive &#8211; now, whenever your blocks get too crowded on the screen, let App Inventor&#8217;s Blocks editor automatically re-arrange the blocks\u00a0for you.<\/p>\n<p><em>(The example code is meaningless &#8211; do not try to use this code. This code is an\u00a0old experiment on Bluetooth &#8211; a new and expanded version of this will be published here soon.)<\/em><\/p>\n<p><strong>Bonus Tip!<\/strong><\/p>\n<p>You can use the &#8220;zoom&#8221; feature of your browser to zoom in and out of the viewing area in the Blocks editor &#8211; this feature enables you to view more blocks on the screen at the same time!<\/p>\n<p>On Chrome, (shown here from Mac OS X), select Zoom out to display more blocks on the screen.<\/p>\n<p><a href=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/01\/Screen-Shot-2015-01-28-at-4.22.39-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"  wp-image-562 aligncenter\" src=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/01\/Screen-Shot-2015-01-28-at-4.22.39-PM.png\" alt=\"Screen Shot 2015-01-28 at 4.22.39 PM\" width=\"343\" height=\"256\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Firefox (on Mac OS X) &#8211; use the View menu and then the Zoom option:<\/p>\n<p><a href=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/01\/Screen-Shot-2015-01-28-at-4.25.47-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"  wp-image-564 aligncenter\" src=\"http:\/\/appinventor.pevest.com\/wp-content\/uploads\/2015\/01\/Screen-Shot-2015-01-28-at-4.25.47-PM.png\" alt=\"Screen Shot 2015-01-28 at 4.25.47 PM\" width=\"396\" height=\"183\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As you develop your App Inventor program using the Blocks editor, do you find your blocks overlapping\u00a0and crashing in to one another on the screen? You know, like this: You can\u00a0drag the blocks on the screen so they no longer overlap, but dragging each block\u00a0is\u00a0tedious (time consuming). But\u00a0there\u00a0is an easy way to automatically re-arrange the &hellip; <a href=\"https:\/\/coldstreams.com\/appinventor\/2015\/01\/28\/blocks-editing-tip-arranging-and-collapsing-blocks-in-the-editor\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Blocks Editing Tip: Arranging and collapsing blocks in the editor<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[19,22,28,130,151,176],"class_list":["post-553","post","type-post","status-publish","format-standard","hentry","category-tips","tag-android","tag-app-inventor","tag-appinventor","tag-mit-app-inventor","tag-programming","tag-software"],"_links":{"self":[{"href":"https:\/\/coldstreams.com\/appinventor\/wp-json\/wp\/v2\/posts\/553","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/coldstreams.com\/appinventor\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coldstreams.com\/appinventor\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coldstreams.com\/appinventor\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coldstreams.com\/appinventor\/wp-json\/wp\/v2\/comments?post=553"}],"version-history":[{"count":0,"href":"https:\/\/coldstreams.com\/appinventor\/wp-json\/wp\/v2\/posts\/553\/revisions"}],"wp:attachment":[{"href":"https:\/\/coldstreams.com\/appinventor\/wp-json\/wp\/v2\/media?parent=553"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coldstreams.com\/appinventor\/wp-json\/wp\/v2\/categories?post=553"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coldstreams.com\/appinventor\/wp-json\/wp\/v2\/tags?post=553"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}