appwiki:code

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
appwiki:code [2023/12/19 03:52] – [VS Code for Blender setup] yingappwiki:code [2024/04/10 17:49] (current) – [setting and app path] ying
Line 9: Line 9:
 |                | vscode | npp | |                | vscode | npp |
 | duplicate line | alt+shift+up/down | ctrl+d | | duplicate line | alt+shift+up/down | ctrl+d |
 +
 +===== setting and app path =====
 +
 +  * add git to VS Code path
 +    * ctrl + shift + p: Preference: Open user settings (json)
 +    * settings.json <code>{
 +    "git.enabled": true,
 +    "git.path": "D:\\App_Dev\\PortableGit\\bin\\git.exe",
 +    "php.validate.executablePath": "D:\\App_Server\\xampp\\php\\php.exe",
 +}
 +</code>
  
 ====== Setup Extension for Web Dev ====== ====== Setup Extension for Web Dev ======
Line 30: Line 41:
   * install Ruff extension to check your code realtime.   * install Ruff extension to check your code realtime.
  
 +Additional options:
 +  * if you don't want to install fake-bpy-module directly to python path, you can cd to project path, and type in vs code's termninal <code>
 +pythono -m venv dev_myproj
 +</code>
 +  * it then creates a folder to store your this-time use library, then activate that virtual env, <code>
 +.\dev_myproj\Scripts\activate
 +</code>
 +  * if your powershell allows script, it should activate the virtual env
 +  * now, install extra module into vritual env python, example <code>.\dev_myproj\Scripts\python.exe -m pip install fake-bpy-module</code>
 +  * in few seconds, your vs code auto detection should be able to know the extra library, if not, make sure your vs code right bottom corner switch to that virtual env python interpreter 
 +
 +Additional extension:
 +  * Black formatter by MS: auto format for vs code
  • appwiki/code.1702957936.txt.gz
  • Last modified: 2023/12/19 03:52
  • by ying