init python: import os import subprocess def open_current_script(): current_script, current_line = renpy.get_filename_line() current_script = renpy.get_filename_line()[0] script_path = os.path.join(config.basedir, current_script) if renpy.windows: # Adjust path to VSCode executable if different vscode_path = "C:\\Users\\LENOVO\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe" subprocess.Popen([vscode_path, "--goto", script_path + ":" + str(current_line)]) elif renpy.linux: subprocess.Popen(['code', "--goto", script_path + ":" + str(current_line)]) config.underlay[0].keymap['Open_line'] = open_current_script config.keymap['Open_line'] = 'K_F5'