Install the complete package with local command reference and every published mode.
install codecodeFor source work where syntax matters,
Opening -l <lang> when the file name does not describe its syntax.
code <file> [-n] [-l <lang>|-<lang>]code <file>open a file in the
-ncreate a missing file before opening it
-l <lang> | -<lang>select php, html, xml, css, js, json, ini, md, py, sql, sh or lil highlighting
include -code -i @includeinspect the automatically managed editor interface package
include -code -u @includeremove optional editor assets without removing
help hotkeysshow editor keyboard shortcuts
Use
The language is inferred from the file name and extension. .env files use INI highlighting. Unknown formats open as plain text. Use -l <lang> when a generated file or unusual extension needs a specific highlighter.
Only regular, readable and writable text files can be edited. Binary files are rejected. A file may be at most 2 MiB and 100000 lines. With -n, the parent directory must already exist and be writable.
Run the prepared examples directly on the page. Their results are prebuilt and shown in the browser; no terminal command is executed on the server.
Install the current compatible version. Choose Base for the complete feature set or Minimum for the reduced package; use upgrade to update a module that is already installed.
Base and Minimum are two packages of the same current module release, not separate command versions.
Install the complete package with local command reference and every published mode.
install codeInstall the reduced package. Local reference is omitted;
install code -mInstall exactly this published version.
install code -v 1.3.6Ask upgrade to check compatibility and replace the installed block only when needed.
upgrade codeRemove the extension block while leaving the core and unrelated modules intact.
install code -uExamples are copyable command lines, not actions executed by this website. Review paths, permissions and destructive flags before running them on a real project.
cd \sandbox | code src/Calculator.phpFile sandbox/src/Calculator.php
Language php
Editor openedcode \sandbox\tmp\review.js -nFile sandbox/tmp/review.js
Language js
New yes
Editor openedcode \sandbox\config\app.json -jsonFile sandbox/config/app.json
Language json
Mode forced
Editor openedcode \sandbox\scripts\demo.lil -l lilFile sandbox/scripts/demo.lil
Language lil
Mode explicit
Editor openedinclude -code -iPackage code
Version 1.0
Components css + js
Installed yesThese commands install the optional editor assets. The
code \sandbox\missing.phpFile not foundsandbox/src/Calculator.phpThe example uses a file or directory from the protected /sandbox/ documentation workspace.
<?php
declare(strict_types=1);
final class Calculator
{
public static function add(int $left, int $right): int
{
return $left + $right;
}
}
Finalizes Local and Server Help synchronization and localization safety for