blender/scripts/presets/text_editor/Visual_Studio_Code.py
Germano Cavalcante 0f2988fd2c Revert preset changes in c6db3f98bb
This partialy reverts commit c6db3f98bbc152a9c839010f25fffbbdff576660.

The presets are case-sensitive, as explained in issue #110642.
2023-11-20 19:41:25 -03:00

13 lines
273 B
Python

import bpy
import platform
filepaths = bpy.context.preferences.filepaths
filepaths.text_editor_args = "-g $filepath:$line:$column"
match platform.system():
case "Windows":
filepaths.text_editor = "code.cmd"
case _:
filepaths.text_editor = "code"