From b7f7b0cb2f6491e2ffdfc4abc54f84a9e571361e Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Wed, 29 May 2024 19:56:25 -0600 Subject: [PATCH] Switch example editor to code instead of mate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's been almost 10 years since the last TextMate update. 😢 I've seen developers be confused here - "huh, what's mate?" - and while I do not want to be seen as advocating for a particular editor, I would bet that more developers are on VS Code than are still holding on to TextMate. --- railties/lib/rails/command/helpers/editor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/railties/lib/rails/command/helpers/editor.rb b/railties/lib/rails/command/helpers/editor.rb index d39fe0041f1..c0ea20a8be0 100644 --- a/railties/lib/rails/command/helpers/editor.rb +++ b/railties/lib/rails/command/helpers/editor.rb @@ -16,7 +16,7 @@ module Rails if editor.to_s.empty? say "No $VISUAL or $EDITOR to open file in. Assign one like this:" say "" - say %(VISUAL="mate --wait" #{executable(current_subcommand)}) + say %(VISUAL="code --wait" #{executable(current_subcommand)}) say "" say "For editors that fork and exit immediately, it's important to pass a wait flag;" say "otherwise, the file will be saved immediately with no chance to edit."