game/godot

Godot3 vscode editor 설정

C/H 2018. 9. 20. 16:35

VS code CLI

# open vscode and foler
code {file} --add {folder_path}

Godot3 Parameter

Editor -> Editor Settings -> Text Editor -> External

{project}
The absolute path to the project directory
{file}
The absolute path to the file
{col}
The column number of the error
{line}
The line number of the error

에디터 실행 명령어

에디터 Exec Flags
geany/kate {file} --line {line} --column {col}
atom/sublime text{file}:{line}
vscode {file}:{line} --add {project}
-g {file}:{line} --add {project}
-g {file}:{line}
{project} --goto {file}:{line}:{col}
{project} -g {file}:{line}:{col}


Note
running cmdline: "code" "C:/Users/username/Projects/projectname" "-g" "C:/Users/username/Projects/projectname/main.gd:0"
ERROR: execute: Condition ' ret == 0 ' is true. returned: ERR_CANT_FORK
   At: platform/windows/os_windows.cpp:2067
WARNING: edit: Couldn't open external text editor, using internal

Window 에서 Exec Path:code 명령어가 제대로 동작하지 않는다면 Exec Path:code.cmd를 입력하면 동작한다.


반응형

'game > godot' 카테고리의 다른 글

Godot3 API - StaticBody2D  (0) 2018.10.25
Godot3 API - KinematicBody2D  (0) 2018.10.24
Godot3 API - RigidBody2D  (0) 2018.10.23
Godot 3 프로젝트 기본폴더 위치 설정  (0) 2018.09.22
Godot3 Multiple resolutions  (0) 2018.09.19