{"id":218192,"date":"2022-01-10T12:59:49","date_gmt":"2022-01-10T11:59:49","guid":{"rendered":"https:\/\/blog.jetbrains.com\/idea\/2022\/01\/starting-a-new-line-of-code-how-many-keystrokes-does-it-usually-take-you\/"},"modified":"2022-01-24T07:49:38","modified_gmt":"2022-01-24T06:49:38","slug":"starting-a-new-line-of-code-how-many-keystrokes-does-it-usually-take-you","status":"publish","type":"idea","link":"https:\/\/blog.jetbrains.com\/zh-hans\/idea\/2022\/01\/starting-a-new-line-of-code-how-many-keystrokes-does-it-usually-take-you\/","title":{"rendered":"\u5f00\u59cb\u4e00\u884c\u65b0\u4ee3\u7801\uff0c\u901a\u5e38\u8981\u6572\u591a\u5c11\u6b21\u952e\u76d8\uff1f"},"content":{"rendered":"\n<p>\u5f00\u59cb\u4e00\u884c\u65b0\u4ee3\u7801\u662f\u4e00\u9879\u7b80\u5355\u7684\u4efb\u52a1\uff0c\u4e5f\u662f\u7f16\u7801\u671f\u95f4\u6700\u5e38\u6267\u884c\u7684\u64cd\u4f5c\u4e4b\u4e00\u3002<\/p>\n\n\n\n<p>\u64cd\u4f5c\u6240\u9700\u51fb\u952e\u6b21\u6570\u901a\u5e38\u53d6\u51b3\u4e8e\u5149\u6807\u4f4d\u7f6e\u3002&nbsp;\u5982\u679c\u5149\u6807\u4f4d\u4e8e\u884c\u9996\uff0c\u53ef\u4ee5\u5c06\u5176\u9010\u5b57\u6216\u9010\u8bcd\u79fb\u52a8\u5230\u884c\u5c3e\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528 end \u952e\u8df3\u5230\u884c\u5c3e\u3002&nbsp;\u5f53\u5149\u6807\u4f4d\u4e8e\u884c\u5c3e\u65f6\uff0c\u6309 Enter \u6216 Return \u952e\u5373\u53ef\u5b8c\u6210\u64cd\u4f5c\u3002<\/p>\n\n\n\n<p>\u8fd9\u79cd\u65b9\u6cd5\u5e76\u4e0d\u4f1a\u82b1\u8d39<em>\u592a\u957f<\/em>\u65f6\u95f4\uff0c\u4e0d\u8fc7\uff0c\u5f00\u59cb\u65b0\u884c\u6bd5\u7adf\u662f\u76f8\u5f53\u9891\u7e41\u7684\u64cd\u4f5c\uff0c\u5728\u901f\u5ea6\u4e0a\u81ea\u7136\u4e5f\u662f\u8d8a\u5feb\u8d8a\u597d\u3002&nbsp;\u5982\u679c\u80fd\u5c06\u8fd9\u4e9b\u51fb\u952e\u7b80\u5316\u4e3a<strong>\u4e00\u4e2a<\/strong>\u7ec4\u5408\u952e\uff0c\u60f3\u5fc5\u53ef\u4ee5\u8282\u7701\u4e0b\u6765\u5927\u91cf\u65f6\u95f4\u3002<\/p>\n\n\n\n<p>\u8fd9\u6837\u7684\u5feb\u6377\u952e\u5728 IntelliJ IDEA \u91cc\u5c31\u6709\uff01&nbsp;\u6309&nbsp;<strong>Shift+Enter<\/strong>&nbsp;\u53ef\u5728\u5f53\u524d\u884c<strong>\u4e0b\u65b9<\/strong>\u5f00\u59cb\u65b0\u884c\uff0c\u6309&nbsp;<strong>Ctrl+Alt+Enter<\/strong>\uff08Mac \u4e3a&nbsp;<strong>\u2325\u2318Enter&nbsp;<\/strong>\uff09\u5219\u53ef\u5728\u5f53\u524d\u884c<strong>\u4e0a\u65b9<\/strong>\u5f00\u59cb\u65b0\u884c\u3002&nbsp;<\/p>\n\n\n<p><\/p>\n<h1 id=\"crowdin_phrase_220488267\" class=\"crowdin_phrase\">\u4f7f\u7528 Shift+Enter \u5728\u5f53\u524d\u884c\u4e4b\u540e\u5f00\u59cb\u65b0\u884c<\/h1>\n\n\n<p>\u4f7f\u7528\u7ec4\u5408\u952e&nbsp;<strong>Shift+Enter<\/strong>&nbsp;\u5c06\u5728\u5f53\u524d\u884c\u4e0b\u65b9\u5f00\u59cb\u65b0\u884c\u3002&nbsp;\u4e8b\u5148\u65e0\u9700\u5c06\u5149\u6807\u79fb\u52a8\u5230\u5f53\u524d\u884c\u672b\u5c3e\uff0c\u65e0\u8bba\u5149\u6807\u4f4d\u4e8e\u5f53\u524d\u884c\u4e2d\u7684\u4ec0\u4e48\u4f4d\u7f6e\uff0c\u8fd9\u4e2a\u5feb\u6377\u952e\u90fd\u53ef\u4ee5\u53d1\u6325\u4f5c\u7528\u3002<\/p>\n\n\n\n<p>\u65b0\u884c\u59cb\u7ec8\u4ee5\u6b63\u786e\u7684\u7f29\u8fdb\u5f00\u59cb\u3002<\/p>\n\n\n<p><img decoding=\"async\" class=\"alignnone wp-image-16062\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2022\/01\/start-line-after-cover.png\" alt=\"\" data-gif-src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2022\/01\/start-line-after.gif\"><\/p>\n<p><\/p>\n<h1 id=\"crowdin_phrase_220488277\" class=\"crowdin_phrase\">\u4f7f\u7528 Ctrl+Alt+Enter\uff08\u6216 \u2325\u2318Enter\uff09\u5728\u5f53\u524d\u884c\u4e0a\u65b9\u5f00\u59cb\u65b0\u884c<\/h1>\n\n\n<p>\u5982\u679c\u8981\u5728\u5f53\u524d\u884c<strong>\u4e0a\u65b9<\/strong>\u5f00\u59cb\u65b0\u884c\uff0c\u4e5f\u6709\u5feb\u6377\u952e\u53ef\u4ee5\u7528\u6765\u8fdb\u4e00\u6b65\u51cf\u5c11\u51fb\u952e\u6b21\u6570\u3002<\/p>\n\n\n\n<p>\u4f7f\u7528 Ctrl+Alt+Enter\uff08\u6216 \u2325\u2318Enter\uff09\u5c06\u5728\u5f53\u524d\u884c\u4e4b\u524d\u5f00\u59cb\u65b0\u884c\u3002&nbsp;\u540c\u6837\uff0c\u5149\u6807\u5728\u5f53\u524d\u884c\u4e2d\u7684\u4f4d\u7f6e\u4e0d\u4f1a\u4ea7\u751f\u4efb\u4f55\u5f71\u54cd\u3002&nbsp;\u65b0\u884c\u521b\u5efa\u540e\uff0c\u5149\u6807\u5c06\u4f4d\u4e8e\u6b63\u786e\u7684\u4f4d\u7f6e\u5e76\u5177\u6709\u6b63\u786e\u7684\u7f29\u8fdb\u3002<\/p>\n\n\n<p><img decoding=\"async\" class=\"alignnone wp-image-16062\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2022\/01\/start-line-before-cover.png\" alt=\"\" data-gif-src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2022\/01\/start-line-before.gif\"><\/p>\n<p><\/p>\n<h1 id=\"crowdin_phrase_220488289\" class=\"crowdin_phrase\">\u603b\u7ed3<\/h1>\n\n\n<p>\u5728\u5f53\u524d\u884c\u4e0a\u65b9\u6216\u4e0b\u65b9\u521b\u5efa\u65b0\u884c\u662f\u5e94\u7528\u5f00\u53d1\u671f\u95f4\u6781\u4e3a\u5e38\u89c1\u7684\u64cd\u4f5c\u3002&nbsp;\u4f7f\u7528\u5355\u4e2a\u7ec4\u5408\u952e\u6709\u52a9\u4e8e\u52a0\u5feb\u7f16\u7801\u8fc7\u7a0b\uff0c\u8ba9\u7f16\u7801\u66f4\u52a0\u201c\u667a\u80fd\u201d\uff01<\/p>\n\n\n\n<p>\u795d\u60a8\u5f00\u53d1\u6109\u5feb\uff01<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u672c\u6587\u82f1\u6587\u539f\u4f5c\u8005\uff1a<\/p>\n\n\n    <div class=\"about-author \">\n        <div class=\"about-author__box\">\n            <div class=\"row\">\n                <div class=\"about-author__box-img\">\n                    <img decoding=\"async\" src=\"https:\/\/secure.gravatar.com\/avatar\/?s=200&#038;r=g\" width=\"200\" height=\"200\" alt=\"\" loading=\"lazy\"  class=\"avatar avatar-200 wp-user-avatar wp-user-avatar-200 photo avatar-default\">\n                <\/div>\n                <div class=\"about-author__box-text\">\n                                                        <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n\n\n<p><\/p>\n","protected":false},"author":1297,"featured_media":216939,"comment_status":"closed","ping_status":"closed","template":"","categories":[4759,601],"tags":[6902,6903],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/idea\/218192"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/idea"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/types\/idea"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/users\/1297"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/comments?post=218192"}],"version-history":[{"count":6,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/idea\/218192\/revisions"}],"predecessor-version":[{"id":219413,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/idea\/218192\/revisions\/219413"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media\/216939"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media?parent=218192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/categories?post=218192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/tags?post=218192"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/cross-post-tag?post=218192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}