file_editor.rst 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. .. _file-editor:
  2. Text Editor
  3. ===========
  4. The text editor in JupyterLab enables you to edit text files in
  5. JupyterLab:
  6. .. image:: images/file_editor_overview.png
  7. :align: center
  8. :class: jp-screenshot
  9. The text editor includes syntax highlighting, configurable indentation
  10. (tabs or spaces), :ref:`key maps <editor-keymaps>` and
  11. basic theming. These settings can be found in the Settings menu:
  12. .. image:: images/file_editor_settings.png
  13. :align: center
  14. :class: jp-screenshot
  15. .. _edit-existing-file:
  16. To edit an existing text file, double-click on its name in the file
  17. browser or drag it into the main work area:
  18. .. raw:: html
  19. <div class="jp-youtube-video">
  20. <iframe src="https://www.youtube-nocookie.com/embed/IuqmxkHsS7o?rel=0&amp;showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  21. </div>
  22. .. _create-file-button:
  23. To create a new text file in the current directory of the file browser,
  24. click the ``+`` button at the top of the file browser to create a new
  25. Launcher tab, and click the “Text Editor” card in the Launcher:
  26. .. raw:: html
  27. <div class="jp-youtube-video">
  28. <iframe src="https://www.youtube-nocookie.com/embed/T1XVz-rjW8I?rel=0&amp;showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  29. </div>
  30. .. _create-file-menu:
  31. You can also create a new text file with the File menu:
  32. .. raw:: html
  33. <div class="jp-youtube-video">
  34. <iframe src="https://www.youtube-nocookie.com/embed/ssFCduQAF48?rel=0&amp;showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  35. </div>
  36. .. _rename-file:
  37. A new file is created with a default name. Rename a file by
  38. right-clicking on its name in the file browser and selecting “Rename”
  39. from the context menu:
  40. .. raw:: html
  41. <div class="jp-youtube-video">
  42. <iframe src="https://www.youtube-nocookie.com/embed/pQR0RV9ObnQ?rel=0&amp;showinfo=0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
  43. </div>