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/18 09:15] – [Setup Extension for Web Dev] 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 19: Line 30:
 ====== VS Code for Blender setup ====== ====== VS Code for Blender setup ======
  
 +ref:
 +  * https://www.youtube.com/watch?v=77mMpeoh3OI
 +
 +Steps:
   * install Extension: python   * install Extension: python
   * make sure you have a python installed   * make sure you have a python installed
   * run a test code to see which python it use   * run a test code to see which python it use
-  * use that python to -m pip install fake-bpy-module+  * use that python to -m pip install fake-bpy-module (so your code gets syntax highlight and auto complete) 
 +    * note: once that install, you may find your normal python, your blender detection script may think it is inside blender 
 +  * 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.1702890914.txt.gz
  • Last modified: 2023/12/18 09:15
  • by ying