Back to articles
Auto Path Header: context for the developer and AI directly in the file

Auto Path Header: context for the developer and AI directly in the file

via Dev.toNiklis

Have you ever opened a file with code and thought: "Where is this file located?" Or copied code for an AI assistant, and it started giving advice about utils.js , not understanding that it is src/features/auth/utils.js , and not src/shared/utils.js ? I encountered this problem constantly. Especially when a project grows to a bunch of files, when you work with several similar files at the same time, or when you try to explain the context of a task to an AI assistant. That is why I created Auto Path Header — an extension for VSCode that automatically adds the path to the file directly at the beginning of each file. Yes, there are similar ones, but in each of them something did not suit me, so I made my own. Problem: loss of context Imagine a typical scenario. You have 15 tabs open. Three files are called index.ts . Two are utils.js . You switch between them, and each time you have to look at breadcrumbs at the top of the screen or hover over the tab to understand where you are. Worse tha

Continue reading on Dev.to

Opens in a new tab

Read Full Article
2 views

Related Articles