Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Solve LeetCode problems in VS Code

License

NotificationsYou must be signed in to change notification settings

deepmanit/vscode-leetcode

 
 

Repository files navigation

LeetCode

Travis CIMarketplace VersionlicenseGitter

Solve LeetCode problems in VS Code.

English

Requirements

  • Node.js

    NOTE: Please make sure thatNode is in yourPATH environment variable. You can check this by running:node -v.

Features

  • Sign in/out to LeetCode
  • Switch and create session
  • Show problems in explorer

    Note: To show the locked problems, please setleetcode.showLocked totrue

  • Search problems by keywords
  • Test solutions by customized test case
  • Submit solutions to LeetCode

Sign In and Sign Out

SignInOut

Switch and Create Session

SwitchSession

Show Problems in Explorer1

ShowProblem

Search Problems by Keywords1

SearchProblem

Test solutions by customized test case2

TestSolution

Submit Solutions to LeetCode2

SubmitSolution

1 If no folder is opened in VS Code, the extension will save the problem files in$HOME/.leetcode/.
2 If you trigger theSubmit to LeetCode andTest in LeetCode commands in the Command Palette, the extension will upload the current active file in editor.

Commands

This extension provides several commands in the Command Palette (F1 or Ctrl + Shift + P):

  • LeetCode: Sign in - Sign in to LeetCode
  • LeetCode: Sign out - Sign out to LeetCode
  • LeetCode: Select session - Select one session and make it active
  • LeetCode: Create new session - Create a new session
  • LeetCode: Refresh - Refresh the LeetCode Explorer
  • LeetCode: Search Problem - Search for problems by keywords
  • LeetCode: Test in LeetCode - Test solution file by customized test case
  • LeetCode: Submit to LeetCode - Submit the solution file to LeetCode
  • LeetCode: Switch endpoint - Switch the LeetCode endpoint. (LeetCode or LeetCode-cn)

Known Issues:

  • This extension will infer the current target problem according to the active editing file. Please do not change the file name.

Release Notes

Refer toCHANGELOG

Acknowledgement

中文

运行条件

  • Node.js

    注意: 请确保NodePATH环境变量中,您可以通过执行:node -v进行查看。

功能

  • 登入 / 登出 LeetCode
  • 切换及创建 session
  • 在 Explorer 中展示题目

    注意: 如果想要展示付费题目,您需要将leetcode.showLocked 设置为true

  • 根据关键字搜索题目
  • 用自定义测试用例测试答案
  • 向 LeetCode 提交答案

登入及登出

SignInOut

切换及创建 session

SwitchSession

在 Explorer 中展示题目1

ShowProblem

根据关键字搜索题目1

SearchProblem

用自定义测试用例测试答案2

TestSolution

向 LeetCode 提交答案2

SubmitSolution

1 如果 VS Code 中没有已打开的文件夹,插件会将题目文件存储于$HOME/.leetcode/ 目录下。
2 如果您通过命令面板触发Submit to LeetCodeTest in LeetCode 命令,本插件将会提交当前文件至 LeetCode。

命令

该插件在命令面板(F1 或 Ctrl + Shift + P)中支持下列命令:

  • LeetCode: Sign in - 登入 LeetCode
  • LeetCode: Sign out - 登出 LeetCode
  • LeetCode: Select session - 激活一个已有的答题进度存档
  • LeetCode: Create new session - 创建一个新的答题进度存档
  • LeetCode: Refresh - 刷新左侧题目列表视图
  • LeetCode: Search Problem - 根据关键字搜索题目
  • LeetCode: Test in LeetCode - 用自定义测试用例进行测试
  • LeetCode: Submit to LeetCode - 提交答案到 LeetCode
  • LeetCode: Switch endpoint - 变更 LeetCode 终端(LeetCode 或 领扣)

已知问题

  • 本插件会根据文件名称推测当前的目标题目,因此建议不要改变文件名。

更新日志

请参考更新日志

鸣谢

About

Solve LeetCode problems in VS Code

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript100.0%

[8]ページ先頭

©2009-2025 Movatter.jp