0f2988fd2c
This partialy reverts commit c6db3f98bbc152a9c839010f25fffbbdff576660. The presets are case-sensitive, as explained in issue #110642.
13 lines
273 B
Python
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"
|