Install programs
Install Visual Studio Code or Cursor
Install extensions:
formulahendry.auto-rename-tag
DEVSENSE.phptools-vscode
bradlc.vscode-tailwindcss
esbenp.prettier-vscode
dbaeumer.vscode-eslint
GraphQL.vscode-graphql
GraphQL.vscode-graphql-syntax
Setup your php executable path:
F1 -> Preferences: Open User Settings (JSON)
For Windows:
"php.validate.executablePath": "C:\Program Files (x86)\Local\resources\extraResources\lightning-services\php-8.2.23+0\bin\win64\php"
To find the php version you have installed, run:
dir C:\Program Files (x86)\Local\resources\extraResources\lightning-services
For Mac OS:
"php.validate.executablePath": "/Applications/Local.app/Contents/Resources/extraResources/lightning-services/php-8.1.23+0/bin/darwin-arm64/bin/php",
To find the php version you have installed, run:
ls /Applications/Local.app/Contents/Resources/extraResources/lightning-services
Configure html snippets
I find the following html snippets to be very useful in development
In VSCode goto: F1 -> Snippets: Configure User Snippets -> html.json
Click Raw
Copy and paste the code into the html.json file you opened earlier
Install Node Version Manager (NVM)
Install node v20 using NVM
Run
nvm ls
to view your installed node versionsRun
nvm install 20
If you don't have one, generate an SSH key-pair:
On Windows:
Launch Git Bash
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
On Mac OS:
ssh-keygen -t rsa -b 4096 -C "example@email.com" -f ~/.ssh/id_rsa
Note: Change email to your personal git hub account email.
If you haven't already, add the public component of your key-pair to your github account
cat ~/.ssh/id_rsa.pub
Last updated