{"id":250,"date":"2026-10-27T20:03:53","date_gmt":"2026-10-27T12:03:53","guid":{"rendered":"http:\/\/laoke.pw\/?p=250"},"modified":"2026-10-27T20:03:53","modified_gmt":"2026-10-27T12:03:53","slug":"212-notepad3-%e7%b3%bb%e7%bb%9f%e8%ae%b0%e4%ba%8b%e6%9c%ac%e7%9a%84%e5%ae%8c%e7%be%8e%e6%9b%bf%e8%ba%ab%ef%bc%8c%e5%9b%9b%e5%85%86%e4%bd%93%e7%a7%af%e5%8d%b4%e4%bb%80%e4%b9%88","status":"publish","type":"post","link":"https:\/\/laoke.pw\/?p=250","title":{"rendered":"212 Notepad3 \u2014\u2014 \u7cfb\u7edf\u8bb0\u4e8b\u672c\u7684\u5b8c\u7f8e\u66ff\u8eab\uff0c\u56db\u5146\u4f53\u79ef\u5374\u4ec0\u4e48\u90fd\u80fd\u5e72"},"content":{"rendered":"<p><strong>\u4e00\u53e5\u8bdd\u5b9a\u4f4d<\/strong>\uff1a\u4e00\u6b3e\u514d\u8d39\u5f00\u6e90\u7684\u8f7b\u91cf\u6587\u672c\u7f16\u8f91\u5668\uff0c\u542f\u52a8\u901f\u5ea6\u548c\u7cfb\u7edf\u8bb0\u4e8b\u672c\u4e00\u6837\u5feb\uff0c\u5374\u8865\u4e0a\u4e86\u8bed\u6cd5\u9ad8\u4eae\u3001\u6b63\u5219\u66ff\u6362\u3001\u7f16\u7801\u8f6c\u6362\u8fd9\u4e9b\u8bb0\u4e8b\u672c\u4e8c\u5341\u5e74\u6ca1\u505a\u7684\u4e8b\u3002<\/p>\n<h2>\u75db\u70b9\u5206\u6790<\/h2>\n<p>Windows \u81ea\u5e26\u7684\u8bb0\u4e8b\u672c\u8fd9\u4e24\u5e74\u867d\u7136\u52a0\u4e86\u6807\u7b7e\u9875\u548c\u6697\u8272\u4e3b\u9898\uff0c\u4f46\u5e95\u5b50\u8fd8\u662f\u90a3\u526f\u6837\u5b50\uff1a\u6ca1\u6709\u8bed\u6cd5\u9ad8\u4eae\uff0c\u6ca1\u6709\u6b63\u5219\u67e5\u627e\uff0c\u7f16\u7801\u53ea\u80fd\u9760\u731c\uff0c\u6362\u884c\u7b26 CRLF \u548c LF \u6df7\u5728\u4e00\u8d77\u65f6\u663e\u793a\u6210\u4e00\u6574\u884c\u3002\u4f60\u8981\u6253\u5f00\u4e00\u4e2a log \u6587\u4ef6\u6392\u67e5\u95ee\u9898\uff0c\u51e0\u767e\u884c\u91cc\u627e\u67d0\u4e2a\u9519\u8bef\u7801\uff0c\u53ea\u80fd\u9760 Ctrl+F \u4e00\u4e2a\u4e2a\u8df3\u3002<\/p>\n<p>\u53e6\u4e00\u6761\u8def\u662f\u88c5 Notepad++ \u6216 VS Code\u3002\u5b83\u4eec\u786e\u5b9e\u5f3a\u5927\uff0c\u4f46\u4ee3\u4ef7\u662f\uff1aNotepad++ \u5b89\u88c5\u65f6\u5bb9\u6613\u5e26\u53bb\u6346\u7ed1\u7ec4\u4ef6\uff0cVS Code \u5219\u8981\u5403\u6389\u51e0\u767e MB \u5185\u5b58\u548c\u4e00\u4e2a\u540e\u53f0\u8fdb\u7a0b\u3002\u5f88\u591a\u65f6\u5019\u4f60\u53ea\u662f\u60f3\u6539\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\u7684\u4e24\u884c\u5b57\uff0c\u4e0d\u9700\u8981\u4e00\u4e2a IDE\u3002<\/p>\n<p>Notepad3 \u7ad9\u7684\u4f4d\u7f6e\u5c31\u5728\u8fd9\u4e24\u8005\u4e2d\u95f4\u2014\u2014\u6bd4\u8bb0\u4e8b\u672c\u5f3a\u5f97\u591a\uff0c\u6bd4\u7f16\u8f91\u5668\u8f7b\u5f97\u591a\u3002<\/p>\n<h2>\u6838\u5fc3\u80fd\u529b<\/h2>\n<ul>\n<li><strong>\u6781\u8f7b<\/strong>\uff1a\u5b89\u88c5\u5305\u53ea\u6709\u51e0 MB\uff0c\u88c5\u5b8c\u5360\u7528\u7684\u78c1\u76d8\u7a7a\u95f4\u4e0d\u5230\u4e8c\u5341 MB\uff0c\u51b7\u542f\u52a8\u57fa\u672c\u662f\u300c\u70b9\u5f00\u5c31\u6709\u300d<\/li>\n<li><strong>\u8bed\u6cd5\u9ad8\u4eae<\/strong>\uff1a\u5185\u7f6e\u51e0\u5341\u79cd\u8bed\u8a00\u7684\u7740\u8272\u89c4\u5219\uff08ini\u3001json\u3001xml\u3001bat\u3001py\u3001c\u3001sql\u3001log \u7b49\uff09\uff0c\u6539\u914d\u7f6e\u6587\u4ef6\u65f6\u4e00\u773c\u80fd\u770b\u51fa\u7ed3\u6784<\/li>\n<li><strong>\u6b63\u5219\u67e5\u627e\u66ff\u6362<\/strong>\uff1a\u652f\u6301\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u8fd8\u80fd\u8de8\u6587\u4ef6\u6279\u91cf\u66ff\u6362\uff0c\u5904\u7406\u65e5\u5fd7\u548c\u4ee3\u7801\u7247\u6bb5\u5f88\u5b9e\u7528<\/li>\n<li><strong>\u7f16\u7801\u4e0e\u6362\u884c\u7b26\u63a7\u5236<\/strong>\uff1a\u53ef\u4ee5\u5728 UTF-8\u3001UTF-8 BOM\u3001ANSI\u3001UTF-16 \u4e4b\u95f4\u8f6c\u6362\uff0c\u4e5f\u80fd\u4e00\u952e\u628a CRLF \u6362\u6210 LF\uff0c\u8de8\u5e73\u53f0\u6539\u811a\u672c\u65f6\u662f\u521a\u9700<\/li>\n<li><strong>\u5217\u7f16\u8f91\u4e0e\u591a\u5149\u6807<\/strong>\uff1a\u6309\u4f4f Alt \u62d6\u9009\u53ef\u4ee5\u7eb5\u5411\u9009\u4e00\u5217\uff0c\u6279\u91cf\u6539\u5bf9\u9f50\u7684\u5b57\u6bb5\u5f88\u65b9\u4fbf<\/li>\n<li><strong>\u81ea\u52a8\u5907\u4efd\u4e0e\u6062\u590d<\/strong>\uff1a\u9ed8\u8ba4\u5f00\u542f\u300c\u4fdd\u5b58\u65f6\u751f\u6210 .bak\u300d\uff0c\u65ad\u7535\u6216\u8bef\u64cd\u4f5c\u540e\u8fd8\u80fd\u635e\u56de\u4e0a\u4e00\u7248<\/li>\n<li><strong>\u53ef\u66ff\u6362\u7cfb\u7edf\u8bb0\u4e8b\u672c<\/strong>\uff1a\u5b89\u88c5\u65f6\u52fe\u9009\u540e\uff0c\u53cc\u51fb txt \u76f4\u63a5\u8fdb Notepad3\uff0c\u7528\u8d77\u6765\u6beb\u65e0\u8fdd\u548c<\/li>\n<\/ul>\n<h2>\u5b9e\u6d4b\u4f53\u9a8c<\/h2>\n<p>\u62ff\u5b83\u5f53\u9ed8\u8ba4\u7684 txt \u6253\u5f00\u5de5\u5177\u7528\u4e86\u4e24\u5468\uff0c\u6700\u5927\u7684\u611f\u53d7\u662f\u300c\u6ca1\u6709\u5b58\u5728\u611f\u300d\u2014\u2014\u8fd9\u6070\u6070\u662f\u8fd9\u7c7b\u5de5\u5177\u7684\u6700\u9ad8\u8bc4\u4ef7\u3002\u6253\u5f00\u4e00\u4e2a 5MB \u7684\u65e5\u5fd7\u6587\u4ef6\u5927\u7ea6\u4e00\u79d2\u51fa\u5934\uff0c\u6eda\u52a8\u6d41\u7545\uff1b\u540c\u4e00\u4e2a\u6587\u4ef6\u5728\u7cfb\u7edf\u8bb0\u4e8b\u672c\u91cc\u4f1a\u660e\u663e\u987f\u4e00\u4e0b\u3002<\/p>\n<p>\u6b63\u5219\u66ff\u6362\u5b9e\u6d4b\u6709\u6548\uff1a\u7528 <code>^(d{4}-d{2}-d{2}).*ERROR.*$<\/code> \u4ece\u4e00\u5806\u65e5\u5fd7\u91cc\u7b5b\u51fa\u62a5\u9519\u884c\uff0c\u66ff\u6362\u6210 <code>$1<\/code> \u53ea\u7559\u65e5\u671f\uff0c\u51e0\u767e\u884c\u77ac\u95f4\u5904\u7406\u5b8c\u3002\u7f16\u7801\u8f6c\u6362\u4e5f\u9760\u8c31\uff0c\u628a\u4e00\u4e2a\u4ece Linux \u62f7\u8fc7\u6765\u7684 shell \u811a\u672c\u4ece LF \u8f6c\u6210 CRLF \u540e\uff0c\u7528\u8bb0\u4e8b\u672c\u6253\u5f00\u4e0d\u518d\u662f\u4e00\u6574\u884c\u3002<\/p>\n<p>\u4e0d\u8db3\u4e4b\u5904\u4e5f\u6bd4\u8f83\u660e\u786e\uff1a<\/p>\n<ul>\n<li>\u6ca1\u6709\u591a\u6807\u7b7e\u9875\uff0c\u540c\u65f6\u5f00\u4e94\u4e2a\u6587\u4ef6\u5c31\u662f\u4e94\u4e2a\u7a97\u53e3\uff0c\u4efb\u52a1\u680f\u4f1a\u4e71<\/li>\n<li>\u4e0d\u505a\u5de5\u7a0b\u7ba1\u7406\uff0c\u6ca1\u6709\u4fa7\u8fb9\u6587\u4ef6\u6811\uff0c\u5f53\u9879\u76ee\u7f16\u8f91\u5668\u7528\u4f1a\u5f88\u522b\u626d<\/li>\n<li>\u8d85\u8fc7\u51e0\u5341 MB \u7684\u8d85\u5927\u6587\u4ef6\u4f9d\u7136\u4f1a\u5361\uff0c\u771f\u6b63\u7684\u5927\u6587\u4ef6\u8fd8\u662f\u5f97\u7528\u4e13\u95e8\u7684\u5de5\u5177<\/li>\n<li>\u81ea\u52a8\u66f4\u65b0\u7684\u63d0\u793a\u504f\u9891\u7e41<\/li>\n<\/ul>\n<h2>\u9002\u5408\u8c01<\/h2>\n<p>\u6700\u9002\u5408\u4e09\u7c7b\u4eba\uff1a\u7ecf\u5e38\u6539\u914d\u7f6e\u6587\u4ef6\u7684\u8fd0\u7ef4\u548c\u5f00\u53d1\u3001\u9700\u8981\u4e34\u65f6\u770b\u65e5\u5fd7\u6392\u9519\u7684\u4eba\u3001\u4ee5\u53ca\u7eaf\u7cb9\u5acc\u7cfb\u7edf\u8bb0\u4e8b\u672c\u592a\u5f31\u7684\u666e\u901a\u7528\u6237\u3002\u5982\u679c\u4f60\u7684\u65e5\u5e38\u662f\u5199\u51e0\u5343\u884c\u7684\u4ee3\u7801\u9879\u76ee\uff0c\u8fd8\u662f\u8001\u8001\u5b9e\u5b9e\u7528 VS Code\uff1b\u5982\u679c\u4f60\u53ea\u662f\u9700\u8981\u4e00\u4e2a\u300c\u6253\u5f00\u5c31\u80fd\u6539\u3001\u6539\u5b8c\u5c31\u5173\u300d\u7684\u7f16\u8f91\u5668\uff0cNotepad3 \u662f\u5f53\u524d\u6700\u7701\u5fc3\u7684\u7b54\u6848\u3002<\/p>\n<h2>\u9700\u8981\u6ce8\u610f\u7684\u5730\u65b9<\/h2>\n<p>\u5b89\u88c5\u65f6\u9009\u300c\u4fbf\u643a\u7248\u300d\u53ef\u4ee5\u628a\u6574\u4e2a\u7a0b\u5e8f\u653e\u5728 U \u76d8\u91cc\u5e26\u8d70\uff0c\u914d\u7f6e\u6587\u4ef6\u8ddf\u7740\u8d70\uff0c\u6362\u673a\u5668\u4e0d\u7528\u91cd\u65b0\u8bbe\u3002\u66ff\u6362\u7cfb\u7edf\u8bb0\u4e8b\u672c\u8fd9\u4e2a\u9009\u9879\u5efa\u8bae\u5148\u8bd5\u7528\u51e0\u5929\u518d\u51b3\u5b9a\uff0c\u56e0\u4e3a\u5b83\u4f1a\u6539\u6ce8\u518c\u8868\u5173\u8054\uff0c\u5378\u8f7d\u65f6\u8bb0\u5f97\u52fe\u9009\u6062\u590d\u3002\u53e6\u5916\u5b83\u9ed8\u8ba4\u5f00\u542f\u81ea\u52a8\u5907\u4efd\uff0c\u957f\u671f\u7f16\u8f91\u5927\u6587\u4ef6\u4f1a\u5728\u540c\u76ee\u5f55\u5806\u51fa\u4e0d\u5c11 <code>.bak<\/code>\uff0c\u5b9a\u671f\u6e05\u4e00\u4e0b\u3002<\/p>\n<h2>\u5c0f\u7ed3<\/h2>\n<p>Notepad3 \u4e0d\u8bd5\u56fe\u6210\u4e3a IDE\uff0c\u5b83\u53ea\u662f\u628a\u300c\u8bb0\u4e8b\u672c\u5e94\u8be5\u6709\u7684\u6837\u5b50\u300d\u8865\u9f50\u4e86\u3002\u56db\u5146\u7684\u4f53\u79ef\u3001\u79d2\u5f00\u7684\u54cd\u5e94\u3001\u591f\u7528\u7684\u9ad8\u4eae\u548c\u6b63\u5219\uff0c\u8fd9\u5957\u7ec4\u5408\u5728 Windows \u4e0a\u51e0\u4e4e\u6ca1\u6709\u5bf9\u624b\u3002\u88c5\u5b8c\u8bbe\u6210\u9ed8\u8ba4\uff0c\u4e4b\u540e\u4f60\u5927\u6982\u518d\u4e5f\u4e0d\u4f1a\u60f3\u8d77\u7cfb\u7edf\u8bb0\u4e8b\u672c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows \u81ea\u5e26\u7684\u8bb0\u4e8b\u672c\u8fd9\u4e24\u5e74\u867d\u7136\u52a0\u4e86\u6807\u7b7e\u9875\u548c\u6697\u8272\u4e3b\u9898\uff0c\u4f46\u5e95\u5b50\u8fd8\u662f\u90a3\u526f\u6837\u5b50\uff1a\u6ca1\u6709\u8bed\u6cd5\u9ad8\u4eae\uff0c\u6ca1\u6709\u6b63\u5219\u67e5\u627e\uff0c\u7f16\u7801\u53ea\u80fd\u9760\u731c\uff0c\u6362\u884c\u7b26 CRLF \u548c LF \u6df7\u5728\u4e00\u8d77\u65f6\u663e\u793a\u6210\u4e00\u6574\u884c\u3002\u4f60\u8981\u6253\u5f00\u4e00\u4e2a log \u6587\u4ef6\u6392\u67e5\u95ee\u9898\uff0c\u51e0\u767e\u884c\u91cc\u627e\u67d0\u4e2a\u9519\u8bef\u7801\uff0c\u53ea\u80fd\u9760 <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[2],"tags":[],"class_list":["post-250","post","type-post","status-publish","format-standard","hentry","category-2"],"_links":{"self":[{"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/posts\/250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/laoke.pw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=250"}],"version-history":[{"count":0,"href":"https:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/posts\/250\/revisions"}],"wp:attachment":[{"href":"https:\/\/laoke.pw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/laoke.pw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/laoke.pw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}