{"id":4181,"date":"2009-04-20T18:04:00","date_gmt":"2009-04-20T18:04:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/powershell\/2009\/04\/20\/adding-your-own-help-links-to-ise\/"},"modified":"2019-02-18T13:12:42","modified_gmt":"2019-02-18T20:12:42","slug":"adding-your-own-help-links-to-ise","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/powershell\/adding-your-own-help-links-to-ise\/","title":{"rendered":"Adding your own help links to ISE"},"content":{"rendered":"<p>ISE has an F1 help feature, where if you press F1 when your caret is over a cmdlet name, context sensitive help opens.<\/p>\n<p>Shay Levy has a nice post on F1 help in the ISE here<br \/><a href=\"http:\/\/blogs.microsoft.co.il\/blogs\/scriptfanatic\/archive\/2009\/01\/31\/using-help-in-powershell-ise.aspx\">http:\/\/blogs.microsoft.co.il\/blogs\/scriptfanatic\/archive\/2009\/01\/31\/using-help-in-powershell-ise.aspx<\/a><br \/>He adds \u201cI wanted to mimic the way ISE\u2019s help works when you press F1 and allow an alias to be expanded to cmdlet name.\u201d and he did it with calling hh.exe on the link<\/p>\n<p>There is an alternative way; Add your own help links to the ISE<\/p>\n<p>You can add to $psLocalHelp and $psOnlineHelp, any key to take you to a help page.<\/p>\n<p>For example, <br \/>$psIse.Options.LocalHelp = $false<br \/>$psOnlineHelp.Add(&#8220;Get-MailBox&#8221;, &#8220;<a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/bb123685.aspx\">http:\/\/technet.microsoft.com\/en-us\/library\/bb123685.aspx<\/a>&#8220;)<br \/>Get-MailBox (press F1)<\/p>\n<p>Will take you to that page<\/p>\n<p>With that, adding help for aliases comes down to two lines of code,<\/p>\n<p>Get-Command -CommandType alias | %{$psLocalHelp.Add($_, $psLocalHelp[$_.definition])}<br \/>Get-Command -CommandType alias | %{$psOnlineHelp.Add($_, $psOnlineHelp[$_.definition])}<\/p>\n<p>Enjoy,<br \/>Ibrahim Abdul Rahim<br \/>[MSFT]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ISE has an F1 help feature, where if you press F1 when your caret is over a cmdlet name, context sensitive help opens. Shay Levy has a nice post on F1 help in the ISE herehttp:\/\/blogs.microsoft.co.il\/blogs\/scriptfanatic\/archive\/2009\/01\/31\/using-help-in-powershell-ise.aspxHe adds \u201cI wanted to mimic the way ISE\u2019s help works when you press F1 and allow an alias to [&hellip;]<\/p>\n","protected":false},"author":600,"featured_media":13641,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[174,260],"class_list":["post-4181","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-powershell","tag-get-help","tag-powershell-ise"],"acf":[],"blog_post_summary":"<p>ISE has an F1 help feature, where if you press F1 when your caret is over a cmdlet name, context sensitive help opens. Shay Levy has a nice post on F1 help in the ISE herehttp:\/\/blogs.microsoft.co.il\/blogs\/scriptfanatic\/archive\/2009\/01\/31\/using-help-in-powershell-ise.aspxHe adds \u201cI wanted to mimic the way ISE\u2019s help works when you press F1 and allow an alias to [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/4181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/users\/600"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/comments?post=4181"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/posts\/4181\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media\/13641"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/media?parent=4181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/categories?post=4181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/powershell\/wp-json\/wp\/v2\/tags?post=4181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}