{"id":264,"date":"2012-01-16T21:02:07","date_gmt":"2012-01-16T10:02:07","guid":{"rendered":"http:\/\/chuchuva.com\/pavel\/?p=264"},"modified":"2012-01-16T17:10:15","modified_gmt":"2012-01-16T06:10:15","slug":"how-to-open-html-files-with-visual-studio-from-far-manager","status":"publish","type":"post","link":"https:\/\/chuchuva.com\/pavel\/2012\/01\/how-to-open-html-files-with-visual-studio-from-far-manager\/","title":{"rendered":"How to open HTML files with Visual Studio from Far Manager"},"content":{"rendered":"<p>Occasionally I want to edit plain HTML file in Visual Studio. You know, those files with .htm or .html extension. Normally pressing Enter in Far Manager opens them in a browser. This is what I want most of the time, so let&#8217;s keep it.<\/p>\n<p>Idea: let&#8217;s use F4 key to open file in Visual Studio.<\/p>\n<p>Here&#8217;s how to achieve it:<\/p>\n<p>* Open Commands menu, select File associations.<br \/>\n* Add new association, enter *.htm;*.html as a mask. Enter this command for F4:<\/p>\n<pre><code>\"C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\Common7\\IDE\\devenv.exe\" \/edit \"!.!\"<\/code><\/pre>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"265\" data-permalink=\"https:\/\/chuchuva.com\/pavel\/2012\/01\/how-to-open-html-files-with-visual-studio-from-far-manager\/far-file-associations-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2012\/01\/far-file-associations.png?fit=727%2C389&amp;ssl=1\" data-orig-size=\"727,389\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"far-file-associations\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2012\/01\/far-file-associations.png?fit=604%2C323&amp;ssl=1\" class=\"alignnone size-full wp-image-265\" src=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2012\/01\/far-file-associations.png?resize=604%2C323\" alt=\"\" width=\"604\" height=\"323\" srcset=\"https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2012\/01\/far-file-associations.png?w=727&amp;ssl=1 727w, https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2012\/01\/far-file-associations.png?resize=300%2C160&amp;ssl=1 300w, https:\/\/i0.wp.com\/chuchuva.com\/pavel\/images\/2012\/01\/far-file-associations.png?resize=500%2C267&amp;ssl=1 500w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/p>\n<p>Change path to devenv.exe if you have different version of Visual Studio.<\/p>\n<p>Note the \/edit parameter. It makes Visual Studio to re-use existing window if it is alredy running. Visual Studio is not exactly a lightweight editor so let&#8217;s be efficient here.<\/p>\n<p>What if you want to open HTML file in internal Far editor? Simple: press Alft+F4.<\/p>\n<p><strong>Reference:<\/strong><\/p>\n<p><a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/xee0c8y7.aspx\">Devenv Command Line Switches<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Occasionally I want to edit plain HTML file in Visual Studio. You know, those files with .htm or .html extension. Normally pressing Enter in Far Manager opens them in a browser. This is what I want most of the time, so let&#8217;s keep it. Idea: let&#8217;s use F4 key to open file in Visual Studio. &hellip; <a href=\"https:\/\/chuchuva.com\/pavel\/2012\/01\/how-to-open-html-files-with-visual-studio-from-far-manager\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How to open HTML files with Visual Studio from Far Manager<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[7],"tags":[9],"class_list":["post-264","post","type-post","status-publish","format-standard","hentry","category-software","tag-far-manager"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/posts\/264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/comments?post=264"}],"version-history":[{"count":0,"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/posts\/264\/revisions"}],"wp:attachment":[{"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/media?parent=264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/categories?post=264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chuchuva.com\/pavel\/wp-json\/wp\/v2\/tags?post=264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}