20. Visual
Studio
Code
簡易上⼿手指南
⾃自動存檔
• 讓檔案⾃自動存檔,不⽤用⼀一直按 ⌘ + S
{
//
Controls
auto
save
of
dirty
files.
Accepted
values:
"off",
"afterDelay",
"onFocusChange".
If
set
to
"afterDelay"
you
can
configure
the
delay
in
"files.autoSaveDelay".
"files.autoSave":
"off",
//
Controls
the
delay
in
ms
after
which
a
dirty
file
is
saved
automatically.
Only
applies
when
"files.autoSave"
is
set
to
"afterDelay"
"files.autoSaveDelay":
1000
}
42. Visual
Studio
Code
簡易上⼿手指南
• VS Code 預設使⽤用 PATH 裡的 PHP interpreter
• 若是不想⽤用 PATH 裡的,可以指定路徑
客製化 PHP 設定
{
//-‐-‐-‐-‐-‐-‐-‐-‐
PHP
Configuration
options
-‐-‐-‐-‐-‐-‐-‐-‐
//
Whether
php
validation
is
enabled
or
not.
"php.validate.enable":
true,
//
Points
to
the
php
executable.
"php.validate.executablePath":
null,
//
Whether
the
linter
is
run
on
save
or
on
type.
"php.validate.run":
"onSave",
}