Skip to content

[Rails] How to disable autocomplete in Rails Console

Published: at 11:33 AM (1 min read)

In Rails 7+, default console autocomplete can cause screen shifting, making command input challenging. Here are several ways to disable this feature.

How to Disable Autocomplete

1. Start Rails Console Without Autocomplete

You can start the Rails console with autocomplete disabled by passing the --noautocomplete flag:

rails console -- --noautocomplete

2. Disable Autocomplete via .irbrc

Add the following line to a .irbrc file in your project directory to disable autocomplete for this project:

touch .irbrc && echo "IRB.conf[:USE_AUTOCOMPLETE] = false" >> .irbrc

References


Previous Post
[LeetCode] 48. Rotate Image
Next Post
[LeetCode] 46. Permutations