# Submit LeetCode's Answer on VSCode
### 1. Download Node.js

### 2. Download LeetCode's extension

### 3. Get cookie on LeetCode
(1) Open Leetcode and right click --> "Inspect" (or click F12)

(2) Click Problem on the top for the next step

(3) Click Network-->XHR-->all.json-->Headers-->Request Headers->cookie

(4) Copy the cookie down (include: _ga=...)

### 4. Sign in to LeetCode on VSCode
(1) Go back to VSCode and click LeetCode icon on the left

(2) Click "Sign In to LeetCode" and choose "LeetCode Cookie"

(3) Enter your email and paste the cookie down


## Congratulations!! It's time to write LeetCode~

---
# Supplement : VSCode User's Code Snippets
### (For people who's very lazy)

```json=
"start up": {
"prefix": "cmain",
"body": [
"#include <stdio.h>",
"#include <stdlib.h>",
"#include <string.h>",
"",
"int main(){",
" $0",
"}"
],
"description": "start"
}
```

```json=
"for loop in i": {
"prefix": "fori",
"body": [
"for(int i = $1; i < $2; i++){",
" $0",
"}"
],
"description": "for i in..."
},
```
