Editors across operating systems

Lesson 29 of 30 · Working with Linux

A graphical code editor can combine a file tree, search, syntax highlighting, and an integrated terminal. VS Code is one example; other editors have different platform support and workflows. The integrated terminal still runs a shell, so its operating system, current directory, and environment determine what commands and files it sees.

On Linux, a graphical editor and its terminal can both work with local Linux files. On macOS, a native editor works with macOS files and tools; macOS is Unix-like, but is not Linux, and its command options and package tools can differ. On Windows with WSL, the editor’s window may run on Windows while the project and development tools live inside a Linux distribution. A Windows terminal session is not automatically a WSL session, and a Windows executable is not a Linux executable.

For a Linux project in WSL, consult the editor’s current remote integration instructions. The VS Code WSL guide describes connecting a Windows editor to a distribution. Open the intended Linux project in that connected environment and check the integrated terminal’s current directory and shell; install required language tools in the environment where they will run. Paths, extensions and tools can belong to different sides of the connection. Editor features and platform availability change, so check the editor’s documentation for your setup.

Whichever editor you choose, distinguish the open buffer from the saved file and review generated suggestions before accepting them. A graphical interface changes how you operate the editor, not the need to understand what gets written.