Category: Uncategorized

VS Code – disable inline MDN suggestions

VS Code has this setting on by default – as I start typing it tries to suggest some MDN references. It took me forever to figure out how to set this off.

Every time I’m setting up VS Code on a new machine, I forget what this setting is!

"editor.parameterHints.enabled": false,

comment line and duplicate snippet for VS Code with keyboard shortcut

Multiple times during the day, I comment a line and then duplicate it with some minor changes. This whole action does not take much time individually but over the course of days and years, I think I’ve wasted a lot of time on this!

This has been overdue for a long time, and I should have created a snippet for this earlier, but never got around to it.

So, I’ll create a snippet which does exactly that and map it to keyboard shortcuts so that the same shortcut works across multiple programming languages.

Continue reading

Add a confirmation on a rake task

Many times on a rake task it’s better to have a confirmation before continuing the task. This is especially required before important tasks like a deployment or a database migration in production.

Adding a gets doesn’t work at all. To overcome this, we can add a confirm task which is run before the actual task is run.

Continue reading

Copyright © 2025 the möbius trip

Theme by Anders NorenUp ↑