Grader SubmitEnglish · ภาษาไทย QuickstartRequires VS Code 1.106 or newer.
Documentation: User Guide ( A fast, zero-clutter VS Code workflow for cafe-grader-web servers — match problems, read PDF statements, run local test cases, and submit code from one sidebar.
Feature Overview
Upgrading from v1.0.0Grader Submit now includes its own Built-in Test Runner and stores all file links and test cases in VS Code's hidden storage (
Reference & ConfigurationFor step-by-step walkthroughs and annotated UI diagrams, see the User Guide ( Settings Reference (
|
| Setting | Default | Description |
|---|---|---|
cedtGrader.displayLanguage |
en |
Language of the panel, Test view, statement viewer, messages, and status bar: en (English), th (Thai), or auto (Follow VS Code). Command names and setting descriptions follow VS Code's own display language. |
cedtGrader.baseUrl |
https://cedt-grader.nattee.net |
Base URL of the cafe-grader-web server (User Settings only, so a workspace cannot redirect your password). |
cedtGrader.username |
"" |
Your grader username (password is stored in OS keychain via VS Code SecretStorage). |
cedtGrader.panel.openOnStartup |
true |
Open the Grader panel automatically when a window starts while keeping focus in your editor. |
cedtGrader.panel.sections |
all 6 | Sections shown and their order: account, current, result, history, trophies, problems. Account always appears while logged out. |
cedtGrader.panel.look |
subtle |
Visual style across the panel, Test view, and statement viewer: subtle (short animations, sticky headers, raised cards, frosted menus/tooltips) or plain. |
cedtGrader.panel.compact |
false |
Tighter spacing, single-line counted score and problem rows, and smaller verdict tiles. |
cedtGrader.panel.topicClickOrder |
showFirst |
First click on a topic pill: showFirst (show only → hide → off) or hideFirst (hide → show only → off). |
cedtGrader.confirmBeforeSubmit |
true |
Ask once before submitting an auto-matched file; submitting saves the match as your choice. |
cedtGrader.saveBeforeSubmit |
true |
Save dirty files to disk before submitting so format-on-save runs first. |
cedtGrader.revealResultAfterSubmit |
true |
Open and scroll to Result when grading finishes without stealing editor focus. |
cedtGrader.pollIntervalSeconds |
5 |
Seconds between grading checks (minimum 3, stops after 3 minutes). |
cedtGrader.statementBeside |
true |
Open problem statements in an editor group beside your code. |
cedtGrader.statementFollowsFile |
true |
Switch an open statement tab to match the active source file's problem. |
cedtGrader.defaultLanguage |
C++ |
Fallback language for New file for this problem. |
cedtGrader.fileNamePattern |
{name}.{ext} |
Pattern for New file for this problem, Rename file to match the problem, and auto-matching ({name}, {id}, {ext}). |
cedtGrader.runner.defaultTimeLimitSeconds |
10 |
Local test run time limit (seconds) when the grader does not specify one. |
cedtGrader.runner.defaultMemoryLimitMB |
1024 |
Local test run memory limit (MB, estimated on macOS/Linux) when the grader does not specify one. |
cedtGrader.runner.compilerPaths |
{} |
Custom tool paths by executable name, e.g. { "g++": "/opt/homebrew/bin/g++-14" }. |
cedtGrader.runner.extraCompileArgs |
{} |
Extra compiler flags by language (cpp, c, java, rust, go, haskell). |
cedtGrader.explorer.badge |
score |
Explorer badge on linked files: score (✓, 0–99, –), tag (2-letter topic), or off. |
cedtGrader.explorer.colors |
true |
Colour Explorer badges and file names by score status or topic tag. |
cedtGrader.fun.enabled |
true |
Master toggle for first-full-score celebrations, Trophies, and break reminders. |
cedtGrader.fun.celebrate |
true |
Play the celebration when a problem first passes every test or reaches 100. |
cedtGrader.fun.breakReminder |
true |
Suggest a short break after a long coding stretch (status bar hint first, prompt only at a natural boundary). |
cedtGrader.fun.breakMinutes |
90 |
Active work minutes before the break hint appears (minimum 30; a 10-minute idle gap resets the timer). |
cedtGrader.fun.breakScene |
random |
Scene shown in the break tab: random, sand, donut3d, donut2d, breathe, or swarm. |
cedtGrader.cacheMaxMB |
100 |
Disk cache cap (MB, minimum 10) for downloaded statements and grader test cases. |
cedtGrader.debugRequests |
false |
Log HTTP method, path, status, and cache hit/miss to Grader Submit: Requests (never logs secrets). |
Command Palette Commands (Grader: …)
| Command | ID | What It Does |
|---|---|---|
Grader: Show Panel |
cedtGrader.focus |
Focus the Grader sidebar panel. |
Grader: Log In / Grader: Log Out |
cedtGrader.login / cedtGrader.logout |
Log in with saved credentials (or focus login form) / log out and clear stored credentials. |
Grader: Submit Current File |
cedtGrader.submit |
Submit the active file (or folder's submit file) to the grader. |
Grader: Run Tests / Grader: Open Tests |
cedtGrader.runTests / cedtGrader.openTests |
Compile and run local test cases / toggle the Tests split view. |
Grader: Load Test Cases from the Grader |
cedtGrader.loadTestcases |
Download official test cases into the built-in runner. |
Grader: Load Sample Cases from the Statement |
cedtGrader.loadSampleCases |
Extract example input/output cases from the statement PDF into the runner. |
Grader: Choose Problem for This File |
cedtGrader.chooseProblem |
Link the active file (or folder) to a problem via Quick Pick. |
Grader: Clear Problem for This File |
cedtGrader.clearMapping |
Unlink or stop auto-matching the active file or folder. |
Grader: Rename File to Match the Problem |
cedtGrader.renameFileToProblem |
Rename the active file using cedtGrader.fileNamePattern. |
Grader: Switch Between Linking This File and the Whole Folder |
cedtGrader.toggleFolderMode |
Toggle Folder Mode on or off for the current folder. |
Grader: Download Problem Attachment |
cedtGrader.downloadAttachment |
Download and unpack the problem's template file or zip package. |
Grader: Open Problem Statement |
cedtGrader.openStatement |
Open the problem statement PDF / Markdown tab beside your code. |
Grader: Show Last Result |
cedtGrader.showLastResult |
Reveal the latest submission result in the panel. |
Grader: Reload Problem List / Reload Submission History |
cedtGrader.refreshProblems / cedtGrader.refreshHistory |
Force-refresh the problem list or current problem's submission history. |
Grader: Take a Break (+ 5 scene commands) |
cedtGrader.takeBreak (.sand, .donut3d, .donut2d, .breathe, .swarm) |
Open the 5-minute interactive break tab with a random or specific scene. |
Grader: Play Celebration / Grader: Show Trophies |
cedtGrader.playCelebration / cedtGrader.showTrophies |
Replay the full-score celebration / open and focus the Trophies section. |
Grader: Clear Cached Data… |
cedtGrader.clearCache |
Choose cached files, custom test cases, problem links, or saved login to clear. |
Grader: Clean Up Old Files |
cedtGrader.cleanUpOldFiles |
Move legacy .cedt-grader.json, .cph/*.prob, and .bin files to the OS Trash. |
Grader: Open Settings / Grader: Show Request Log |
cedtGrader.openSettings / cedtGrader.showRequestLog |
Open extension settings / open the Grader Submit: Requests output channel. |
Grader: How to Use / Grader: Troubleshooting |
cedtGrader.openUserGuide / cedtGrader.openTroubleshooting |
Open USERGUIDE.md or the Troubleshooting section on GitHub in your display language. |
Scores, Exams, Privacy & Storage
- Counted score: Shows your best submission out of
100minus hint/AI-assist penalties (or uncapped raw points on raw-sum problems). Your instructor's final grading rules may differ. - Exams: If a problem list appears to be an exam, the extension warns you before submitting (Open in Browser / Submit Anyway). Always check with your instructor before using an extension during an exam.
- Privacy & credentials: Passwords and tokens are stored in your OS keychain (
SecretStorage), never in settings or logs. Requests go only tocedtGrader.baseUrl(cross-origin redirects are blocked), and nothing is fetched while the panel is hidden. - Storage & uninstalling: Statements, test cases, and file links live in VS Code's
globalStorageUri; compiled test binaries live in<os.tmpdir()>/cedt-grader-bin/. Run Grader: Clear Cached Data… before uninstalling if you want to remove all cached data and keychain credentials.
Troubleshooting
The panel links here from the logged-out Account section, the connection banner, and the panel's ⋯ menu (Grader: Troubleshooting). For detailed help and issue reporting, see USERGUIDE.md#troubleshooting and SUPPORT.md.
Left: Offline banner keeping cached data accessible. Right: Notice when multiple files link to the same problem.
| Problem | Cause & Fix |
|---|---|
Cannot log in (Wrong username or password / Too many failed login attempts / refused) |
Verify your credentials on the grader website. After repeated failures, the server blocks logins for a few minutes — wait before retrying. If using another server, click ✎ next to Server: in Account (or set cedtGrader.baseUrl in User Settings). |
This address isn't a supported grader |
The server check in Account verifies that the URL responds like a cafe-grader-web instance. Check for typos or click Use the default server. |
The grader … sent the request on to another address |
For security, redirects to a different host are blocked. If the grader moved to a new domain, update cedtGrader.baseUrl in User Settings. |
| Wrong problem matched (or no problem matched) | Click the problem box under Current problem to pick the right one (saved as Chosen by you), or click ✕ to unlink / stop auto-matching. |
Run tests says compiler not found or times out |
Install the compiler for your language (g++, gcc, python3, javac, rustc, go, ghc, ruby, fpc, php) or set its full path in cedtGrader.runner.compilerPaths. |
Load samples misses or misreads a PDF table |
Sample extraction reads selectable text inside ruled tables. Scanned PDFs or unusual layouts may be skipped or misread — check the cases in the Tests view or edit/add custom cases with + Add case. |
| Where is the Grader icon? | In VS Code 1.106+, the Grader panel opens in the Secondary Sidebar on the right (run Grader: Show Panel from the Command Palette if hidden). Drag the Grader header to the left Activity Bar if you prefer it on the left. |