vscode 플러그인 xysfdx로 Salesforce 개발. WSL 지원! !
11013 단어 WSLxysfdxSalesforceSFDXVSCode
xysfdx README
xysfdx is a Rapid development tool for Salesforce SFDX Development. Metadata diff with server, retrieve standard sobject.
Features
.apex
file after save. .cmp
, .page
, .component
, .trigger
, .cls
file Shortkey
shortkey :
ctrl+shift+j
Requirements
Salesforce Cli
Usage
Create a project
force:project:create
Retrieve metadata
force:source:retrieve:metadata
Diff metadata
force:source:diff:metadata
You can diff with any sfdc organization.
diff source
diff profile
Authentication
force:auth:web:login
Deploy metadata
force:source:deploy:metadata
force:source:deploy:current_file
Option Features
How to config option features
You can also open the Settings editor from the Command Palette (
Ctrl+Shift+P
) with Preferences: Open Settings or use the keyboard shortcut ( Ctrl+,
).검색
xysfdx
Build-in Option Features
xysfdx.optionFeatures
config:.apex
file after save it .trigger
, .cls
, .component
, .page
file to sfdc .cmp
, .page
, .component
file .apex
file .trigger
, .cls
file config:
{
"xysfdx.optionFeatures": [
// show advanced command
//"use_advanced_command",
// auto deploy to `.trigger`, `.cls`, `.component`, `.page` file to sfdc
// "auto_save_to_sfdc",
// pretty `.cmp`, `.page`, `.component` file
// "pretty_vf_page",
// pretty `.trigger`, `.cls` file
// "pretty_apex",
// run `.apex` file after save it, default active
"auto_run_apex_anonymous",
// pretty `.apex` file
"pretty_apex_anonymous"
]
}
show advanced command
Advanced:force:source:deploy:current_file
: Select Authenticated server and deploy file Advanced:force:source:retrieve:current_file
: Select Authenticated server and retrieve file auto run apex anonymous code
auto_run_apex_anonymous
auto save to sfdc server
auto_save_to_sfdc
pretty code
.cmp
, .page
, .component
file .trigger
, .cls
file .apex
file you need to install
java
and prettier and prettier-plugin-apexnpm install --global prettier prettier-plugin-apex
sudo apt install openjdk-8-jdk
read more about prettier-plugin-apex
For Windows 사용자
use wsl/git bash/Msys2 bash to develope sfdx.
Open cmd/wsl/bash
use wsl
open
wslmode
{
"xysfdx.shellMode": "wsl",
"xysfdx.shellPath": "C:\\Windows\\System32\\bash.exe"
}
use msys2 bash
{
"xysfdx.shellMode": "bash",
"xysfdx.shellPath": "C:\\msys64\\usr\\bin\\bash.exe"
}
use git bash
{
"xysfdx.shellMode": "bash",
"xysfdx.shellPath": "C:\\Program Files\\Git\\git-bash.exe"
}
Enjoy it!
Reference
이 문제에 관하여(vscode 플러그인 xysfdx로 Salesforce 개발. WSL 지원! !), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/exiasfdc/items/04098ee9335a75f657c3텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)