{"id":199,"date":"2017-11-12T00:00:00","date_gmt":"2017-11-12T08:00:00","guid":{"rendered":"http:\/\/officedevblogs.wpengine.com\/?p=199"},"modified":"2017-11-12T00:00:00","modified_gmt":"2017-11-12T08:00:00","slug":"announcing-script-lab-improvements","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/announcing-script-lab-improvements\/","title":{"rendered":"Announcing Script Lab improvements"},"content":{"rendered":"<div id=\"body-content\">\n<p>Code, run, share! We love making it easy to develop Office add-ins. Whether you&#8217;re an experienced developer or a newbie, we encourage you to dive in, explore, and build with Script Lab, our Microsoft Garage project. We provide seamless access to the Office JavaScript API from inside Excel, Word, and PowerPoint. We&#8217;ve been busy working on updates to make your Script Lab experience awesome, and we&#8217;d like to highlight a few of the recent changes. You can learn more about Script Lab on <a href=\"https:\/\/github.com\/OfficeDev\/script-lab\/blob\/master\/README.md\">our GitHub page<\/a>.<\/p>\n<p>Let&#8217;s explore what&#8217;s new.<\/p>\n<h2>Trigger Suggest to see your options<\/h2>\n<p>Trigger Suggest makes choosing your next function a breeze. Simply right-click or F2, and we&#8217;ll list all the options available.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/05\/Script20120jpeg.jpg\" alt=\"Right-click menu\" width=\"458\" height=\"215\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/05\/Script20220jpeg.jpg\" alt=\"IntelliSense options shown in the editor\" width=\"458\" height=\"220\" \/><\/p>\n<h2><\/h2>\n<h2>Preview APIs<\/h2>\n<p>If you&#8217;re wondering what&#8217;s next, look no further than our Preview APIs. You can try out these snippet samples before the APIs are released. Edit chart elements that were not available before. Create and update hyperlinks. Modify worksheet viewing. All of these actions have easy API calls in Preview. Keep in mind, you&#8217;ll need an Office 365 subscription with the latest updates to take advantage of previews.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/05\/Script203.jpg\" alt=\"Preview APIs shown in the samples list\" width=\"500\" height=\"383\" \/><\/p>\n<h2>Here&#8217;s the gist of it<\/h2>\n<p>Script Lab has always supported sharing snippets via GitHub Gists, but we&#8217;ve made several vast improvements.<\/p>\n<p>First of all, when you update a snippet that you&#8217;ve previously shared, you will now have the option to update the existing gist (keeping the same gist URL, and avoiding creating multiple copies of the same snippet). In fact, you&#8217;ll even be able to view the diffs between your revisions when you view the snippet online on GitHub! We introduced this feature earlier, but it had some issues, and now it&#8217;s working flawlessly (as far as we can tell). If it isn&#8217;t as flawless as expected, <a href=\"https:\/\/github.com\/OfficeDev\/script-lab\/blob\/master\/README.md\">let us know<\/a>!<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/05\/Script204.png\" alt=\"Option for \u201cupdate existing gist\u201d\" width=\"500\" height=\"354\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/05\/Script205.png\" alt=\"Viewing the revision history on GitHub\u201d\" width=\"740\" height=\"586\" \/><\/p>\n<p>Likewise, if you&#8217;re importing a gist (yours or someone else&#8217;s) that you&#8217;ve already imported before, there&#8217;s a dialog to help you decide whether to get a new copy or switch to the existing one.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/05\/Script206.png\" alt=\"Dialog prompting whether to go existing snippet or create a new copy of the snippet\" width=\"434\" height=\"432\" \/><\/p>\n<p>Finally, we&#8217;ve built a better trust experience when you&#8217;re importing external snippets. You can now safely import and browse someone else&#8217;s code in the editor, knowing that before you run the snippet, you will be prompted with a dialog to choose whether or not to trust and run the code.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/05\/Script207.png\" alt=\"Dialog prompting whether to trust the externally-imported snippet\" width=\"472\" height=\"193\" \/><\/p>\n<h2><\/h2>\n<h2>Script Lab speaks four languages<\/h2>\n<p>With the help of members of the community, we&#8217;ve added the ability to switch languages with our first translations in German, Spanish, and Chinese.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-content\/uploads\/sites\/73\/2018\/05\/Script208.jpg\" alt=\"Language choice in the \u201cAbout\u201d menu\" width=\"379\" height=\"387\" \/><\/p>\n<h2><\/h2>\n<h2>There&#8217;s more!<\/h2>\n<p>Along with all these exciting new features, we&#8217;ve incorporated some updates to the Monaco code editor, which addresses several code-editing bug fixes and improvements. \u00a0We&#8217;re now on their latest <a href=\"https:\/\/github.com\/Microsoft\/monaco-editor\/blob\/master\/CHANGELOG.md\">0.10.0<\/a> release!<\/p>\n<p>Our team is working hard to make your feature dreams come true: we&#8217;re always listening to our community of developers, so please engage with us on GitHub; share your suggestions, tell us what&#8217;s broken, and code your heart out! We&#8217;re still in the early days of Script Lab and we plan to continue working on it. You can stay up-to-date on GitHub and on Twitter @OfficeDev.<\/p>\n<p>Also, if you&#8217;re not an Office Insider already, consider <a href=\"https:\/\/products.office.com\/en-us\/office-insider\">joining to help shape the future of Office<\/a>. Not only does your feedback go directly to Microsoft product teams, you&#8217;ll also get early access to the latest Office releases, including the ability to run Preview APIs.<\/p>\n<p>Happy coding!<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Code, run, share! We love making it easy to develop Office add-ins. Whether you&#8217;re an experienced developer or a newbie, we encourage you to dive in, explore, and build with Script Lab, our Microsoft Garage project. <\/p>\n","protected":false},"author":69076,"featured_media":200,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[11],"tags":[18],"class_list":["post-199","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-office-add-ins","tag-excel"],"acf":[],"blog_post_summary":"<p>Code, run, share! We love making it easy to develop Office add-ins. Whether you&#8217;re an experienced developer or a newbie, we encourage you to dive in, explore, and build with Script Lab, our Microsoft Garage project. <\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/users\/69076"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/comments?post=199"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/posts\/199\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media\/200"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/media?parent=199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/categories?post=199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/microsoft365dev\/wp-json\/wp\/v2\/tags?post=199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}