external_editor.rst 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. .. _doc_external_editor:
  2. Using an external text editor
  3. ==============================
  4. While godot has an inbuilt text editor, some developers have a tendency to
  5. want to use a text editor they are familiar with. Godot provides this
  6. option via the options under
  7. ``Editor -> Editor Settings -> Text Editor -> External``
  8. .. image:: img/editor_settings.png
  9. There are two fields: the executable path and command line flags. The flags
  10. allow you to better integrate the editor with godot. Godot will replace the
  11. following inside the flags parameter:
  12. +---------------------+-----------------------------------------------------+
  13. | Field in Exec Flags | Is replaced with |
  14. +=====================+=====================================================+
  15. | {project} | The absolute path to the project directory |
  16. +---------------------+-----------------------------------------------------+
  17. | {file} | The absolute path to the file |
  18. +---------------------+-----------------------------------------------------+
  19. | {col} | The column number of the error |
  20. +---------------------+-----------------------------------------------------+
  21. | {line} | The line number of the error |
  22. +---------------------+-----------------------------------------------------+
  23. Some example Exec Flags for various editors include:
  24. +---------------------+-----------------------------------------------------+
  25. | Editor | Exec Flags |
  26. +=====================+=====================================================+
  27. | geany/kate | {file} --line {line} --column {col} |
  28. +---------------------+-----------------------------------------------------+
  29. | atom/sublime text | {file}:{line} |
  30. +---------------------+-----------------------------------------------------+
  31. | visual studio code | {project} --goto {file}:{line}:{col} |
  32. +---------------------+-----------------------------------------------------+