vscode는 go to definition이라는 f12 혹은 ctrl을 누른 채로 정의로 이동할 수 있는 기능이 있습니다.
그런데 가끔 이 기능이 동작하지 않을 때가 있는데 그럴 때에는
프로젝트 루트에 .vscode라는 폴더를 생성한 후, setting.json이라는 파일을 다음과 같이 만들어줍니다.
{
"python.pythonPath" : "/Users/user/AppData/Local/Programs/Python/Python37-32",
"python.linting.flake8Enabled" : true,
"python.linting.pylintEnabled" : false,
"python.linting.enabled" : true,
"python.formatting.provider" : "black",
"python.linting.flake8Args" : ["--max-line-length=88"]
}
그럼 아래와 같이 동작하는 모습을 볼 수 있습니다.
저의 경우에는 이렇게 동작했습니다.