[{"data":1,"prerenderedAt":232},["ShallowReactive",2],{"post-\u002Fblog\u002F2020-05-10-leetcode-vscode":3,"surround-\u002Fblog\u002F2020-05-10-leetcode-vscode":225},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"title":8,"description":9,"date":10,"tags":11,"cover":16,"source":17,"body":18,"_type":219,"_id":220,"_source":221,"_file":222,"_stem":223,"_extension":224},"\u002Fblog\u002F2020-05-10-leetcode-vscode","blog",false,"","力扣(LeetCode)刷题神器之Vs Code","在 VS Code 中使用 LeetCode 插件进行刷题，包括 Node.js 环境配置、插件安装、账号登录及使用全流程。","2020-05-10",[12,13,14,15],"简书","历史归档","LeetCode","VS Code","https:\u002F\u002Fupload-images.jianshu.io\u002Fupload_images\u002F16281566-06ad2576b969aad1.png","https:\u002F\u002Fwww.jianshu.com\u002Fp\u002F85e8b7e84705",{"type":19,"children":20,"toc":211},"root",[21,30,36,41,46,54,59,64,69,74,79,85,100,107,112,119,125,139,146,152],{"type":22,"tag":23,"props":24,"children":26},"element","h2",{"id":25},"力扣leet-code介绍",[27],{"type":28,"value":29},"text","力扣(Leet Code)介绍",{"type":22,"tag":31,"props":32,"children":33},"p",{},[34],{"type":28,"value":35},"相信不少学习编程的人对 LeetCode 这个网站是相当之熟悉的，这是一个专供程序员们练习编程能力的网站，主要侧重于算法方面，想进入一线大厂必备技能没有之一。",{"type":22,"tag":31,"props":37,"children":38},{},[39],{"type":28,"value":40},"作为一个最早期的、用户量也非常大的、面向大众的 OJ（Online Judge），LeetCode 在前两年年做了一个特别重大的决定 —— 正式进入中国。",{"type":22,"tag":31,"props":42,"children":43},{},[44],{"type":28,"value":45},"虽然在 LeetCode 进入中国之前我们也能使用 LeetCode，但是由于其服务器远在太平洋的对岸，以至于使用体验往往不太好，为了能给中国这个互联网大国提供服务，LeetCode 专门建了一个中国站。",{"type":22,"tag":31,"props":47,"children":48},{},[49],{"type":22,"tag":50,"props":51,"children":53},"img",{"alt":7,"src":52},"https:\u002F\u002Fupload-images.jianshu.io\u002Fupload_images\u002F16281566-06ad2576b969aad1.png?imageMogr2\u002Fauto-orient\u002Fstrip%7CimageView2\u002F2\u002Fw\u002F1200\u002Fformat\u002Fwebp",[],{"type":22,"tag":31,"props":55,"children":56},{},[57],{"type":28,"value":58},"中国站会提供一些国内互联网企业的工作机会\u002F实习机会，如果你刚好有这方面的能力，可以通过 LeetCode 直接投递简历。",{"type":22,"tag":31,"props":60,"children":61},{},[62],{"type":28,"value":63},"可是，LeetCode 虽然提供了对处于国内的我们来说更方便的中国站，但是由于 LeetCode 网页上的 IDE 并不是很便于编写代码和调试，以至于一般我们都会自己在自己常用的 IDE 里新建一个代码文件，在代码写好、调试好之后再粘贴到 LeetCode 上进行评分。",{"type":22,"tag":31,"props":65,"children":66},{},[67],{"type":28,"value":68},"这个操作虽然是在各种 OJ 上的标准操作，但是在互联网如此发达、IDE 可扩展性越来越高的今天，这种操作不够便捷。",{"type":22,"tag":31,"props":70,"children":71},{},[72],{"type":28,"value":73},"这个时候，我们就应该拿出微软开发的史上最强代码编辑器VS Code了。",{"type":22,"tag":31,"props":75,"children":76},{},[77],{"type":28,"value":78},"在 VSCode 上有一个 LeetCode 扩展在近期上架，目前还处于预览版的阶段。",{"type":22,"tag":23,"props":80,"children":82},{"id":81},"nodejs-环境搭建",[83],{"type":28,"value":84},"Node.js 环境搭建",{"type":22,"tag":31,"props":86,"children":87},{},[88,90,98],{"type":28,"value":89},"Node.js官网： ",{"type":22,"tag":91,"props":92,"children":96},"a",{"href":93,"rel":94},"https:\u002F\u002Fnodejs.org\u002Fen\u002F",[95],"nofollow",[97],{"type":28,"value":93},{"type":28,"value":99}," ，下载自己想要的版本，建议下载稳定版本。",{"type":22,"tag":31,"props":101,"children":102},{},[103],{"type":22,"tag":50,"props":104,"children":106},{"alt":7,"src":105},"https:\u002F\u002Fupload-images.jianshu.io\u002Fupload_images\u002F16281566-7f633d1eeca8a8ed.png?imageMogr2\u002Fauto-orient\u002Fstrip%7CimageView2\u002F2\u002Fw\u002F1200\u002Fformat\u002Fwebp",[],{"type":22,"tag":31,"props":108,"children":109},{},[110],{"type":28,"value":111},"安装Node.js，安装过程基本上是傻瓜式的下一步，即可完成，然后在CMD中运行如下命令：node -v 来查询当前node.js的版本号，然后输出如图所示版本号就表示node.js环境变量设置成功",{"type":22,"tag":31,"props":113,"children":114},{},[115],{"type":22,"tag":50,"props":116,"children":118},{"alt":7,"src":117},"https:\u002F\u002Fupload-images.jianshu.io\u002Fupload_images\u002F16281566-c44ccc96e6da2f11.png?imageMogr2\u002Fauto-orient\u002Fstrip%7CimageView2\u002F2\u002Fw\u002F992\u002Fformat\u002Fwebp",[],{"type":22,"tag":23,"props":120,"children":122},{"id":121},"leetcode插件安装",[123],{"type":28,"value":124},"LeetCode插件安装",{"type":22,"tag":31,"props":126,"children":127},{},[128,130,137],{"type":28,"value":129},"Vs Code安装这里就不再过多的赘述，请自行安装。打开 ",{"type":22,"tag":131,"props":132,"children":134},"code",{"className":133},[],[135],{"type":28,"value":136},"Vs Code",{"type":28,"value":138}," 按照如下步骤进行操作",{"type":22,"tag":31,"props":140,"children":141},{},[142],{"type":22,"tag":50,"props":143,"children":145},{"alt":7,"src":144},"https:\u002F\u002Fupload-images.jianshu.io\u002Fupload_images\u002F16281566-e7fb7e8cc05d1dfd.png?imageMogr2\u002Fauto-orient\u002Fstrip%7CimageView2\u002F2\u002Fw\u002F1200\u002Fformat\u002Fwebp",[],{"type":22,"tag":23,"props":147,"children":149},{"id":148},"leetcode-登录和使用",[150],{"type":28,"value":151},"LeetCode 登录和使用",{"type":22,"tag":153,"props":154,"children":155},"ol",{},[156,166,175,184,193,202],{"type":22,"tag":157,"props":158,"children":159},"li",{},[160,162],{"type":28,"value":161},"在登录账户之前一定要先选择账户来源到底是美国还是中国，因为这两种账户不互通（只需修改一次）\n",{"type":22,"tag":50,"props":163,"children":165},{"alt":7,"src":164},"https:\u002F\u002Fupload-images.jianshu.io\u002Fupload_images\u002F16281566-5dc9bf366adbee23.png?imageMogr2\u002Fauto-orient\u002Fstrip%7CimageView2\u002F2\u002Fw\u002F1200\u002Fformat\u002Fwebp",[],{"type":22,"tag":157,"props":167,"children":168},{},[169,171],{"type":28,"value":170},"接下来就是登陆了，选择相应的用户输入账户密码即可\n",{"type":22,"tag":50,"props":172,"children":174},{"alt":7,"src":173},"https:\u002F\u002Fupload-images.jianshu.io\u002Fupload_images\u002F16281566-c9b65bbc92e90022.png?imageMogr2\u002Fauto-orient\u002Fstrip%7CimageView2\u002F2\u002Fw\u002F1200\u002Fformat\u002Fwebp",[],{"type":22,"tag":157,"props":176,"children":177},{},[178,180],{"type":28,"value":179},"登陆后会显示所有的题目\n",{"type":22,"tag":50,"props":181,"children":183},{"alt":7,"src":182},"https:\u002F\u002Fupload-images.jianshu.io\u002Fupload_images\u002F16281566-d6cf8c250eb2940c.png?imageMogr2\u002Fauto-orient\u002Fstrip%7CimageView2\u002F2\u002Fw\u002F1200\u002Fformat\u002Fwebp",[],{"type":22,"tag":157,"props":185,"children":186},{},[187,189],{"type":28,"value":188},"选择相应的题目\n",{"type":22,"tag":50,"props":190,"children":192},{"alt":7,"src":191},"https:\u002F\u002Fupload-images.jianshu.io\u002Fupload_images\u002F16281566-5883b39e39333f37.png?imageMogr2\u002Fauto-orient\u002Fstrip%7CimageView2\u002F2\u002Fw\u002F1200\u002Fformat\u002Fwebp",[],{"type":22,"tag":157,"props":194,"children":195},{},[196,198],{"type":28,"value":197},"编写好代码之后点击测试按钮进行测试\n",{"type":22,"tag":50,"props":199,"children":201},{"alt":7,"src":200},"https:\u002F\u002Fupload-images.jianshu.io\u002Fupload_images\u002F16281566-cd6d24d8867a249b.png?imageMogr2\u002Fauto-orient\u002Fstrip%7CimageView2\u002F2\u002Fw\u002F1200\u002Fformat\u002Fwebp",[],{"type":22,"tag":157,"props":203,"children":204},{},[205,207],{"type":28,"value":206},"测试完成之后进行代码的提交\n",{"type":22,"tag":50,"props":208,"children":210},{"alt":7,"src":209},"https:\u002F\u002Fupload-images.jianshu.io\u002Fupload_images\u002F16281566-33a7fdb2b754c3f7.png?imageMogr2\u002Fauto-orient\u002Fstrip%7CimageView2\u002F2\u002Fw\u002F1200\u002Fformat\u002Fwebp",[],{"title":7,"searchDepth":212,"depth":212,"links":213},3,[214,216,217,218],{"id":25,"depth":215,"text":29},2,{"id":81,"depth":215,"text":84},{"id":121,"depth":215,"text":124},{"id":148,"depth":215,"text":151},"markdown","content:blog:2020-05-10-leetcode-vscode.md","content","blog\u002F2020-05-10-leetcode-vscode.md","blog\u002F2020-05-10-leetcode-vscode","md",[226,229],{"_path":227,"title":228},"\u002Fblog\u002F2020-05-12-mysql-binlog","MySQL 开启 binlog",{"_path":230,"title":231},"\u002Fblog\u002F2020-05-08-kafka-connect-mysql","Kafka Connect For MySQL 实现增量数据同步",1796523532994]