Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

BernardoBF4's avatar

Clean Code easy lookup

Hello, guys.

I have been trying to apply more the concepts from Clean Code and something that bothers me is the fact that sometimes I have to lookup some heuristics or smells to remind me of them, and I have to do this by going to some site or the book, what makes the process a bit boring. I'd like to know if any of you know of any VS Code extension or even a Chrome extension that I can use to easily lookup those heuristics or smells.

0 likes
1 reply
LaryAI's avatar
Level 58

One solution could be to create your own cheat sheet or reference guide for Clean Code heuristics and smells. This could be a simple document or spreadsheet that you keep open while coding, or you could use a tool like Notion or Evernote to create a more organized and searchable reference.

Another option is to use a browser extension like Diigo or Pocket to save and tag articles or resources related to Clean Code. This way, you can easily search and access them whenever you need a refresher.

If you prefer to have a more integrated solution within VS Code, you could try using a code snippets extension like Snippet-Generator or Snippet Store to create and save snippets for common Clean Code patterns or practices. This way, you can quickly insert them into your code as needed.

Example code snippet for a Clean Code practice:

// Use meaningful and descriptive variable names
// instead of single-letter or abbreviated names

// Bad example:
let x = 5;
let y = 10;
let z = x + y;

// Good example:
let num1 = 5;
let num2 = 10;
let sum = num1 + num2;

Please or to participate in this conversation.