# Submit LeetCode's Answer on VSCode ### 1. Download Node.js ![](https://i.imgur.com/niBr01e.png) ### 2. Download LeetCode's extension ![](https://i.imgur.com/n1PKrKq.png) ### 3. Get cookie on LeetCode (1) Open Leetcode and right click --> "Inspect" (or click F12) ![](https://i.imgur.com/n24OHz4.jpg) (2) Click Problem on the top for the next step ![](https://i.imgur.com/Ine7sZg.jpg) (3) Click Network-->XHR-->all.json-->Headers-->Request Headers->cookie ![](https://i.imgur.com/WL8REpF.png) (4) Copy the cookie down (include: _ga=...) ![](https://i.imgur.com/nMxkrLC.png) ### 4. Sign in to LeetCode on VSCode (1) Go back to VSCode and click LeetCode icon on the left ![](https://i.imgur.com/NcsNT2u.png) (2) Click "Sign In to LeetCode" and choose "LeetCode Cookie" ![](https://i.imgur.com/iKCFEoC.png) (3) Enter your email and paste the cookie down ![](https://i.imgur.com/dHIAhBT.png) ![](https://i.imgur.com/2HS6l44.png) ## Congratulations!! It's time to write LeetCode~ ![](https://i.imgur.com/r5PAMll.jpg) --- # Supplement : VSCode User's Code Snippets ### (For people who's very lazy) ![](https://i.imgur.com/sVpviAw.png) ```json= "start up": { "prefix": "cmain", "body": [ "#include <stdio.h>", "#include <stdlib.h>", "#include <string.h>", "", "int main(){", " $0", "}" ], "description": "start" } ``` ![](https://i.imgur.com/PRDWdly.png) ```json= "for loop in i": { "prefix": "fori", "body": [ "for(int i = $1; i < $2; i++){", " $0", "}" ], "description": "for i in..." }, ``` ![](https://i.imgur.com/cSaljRl.png)