Code Prism🔗 What is it?Code Prism extension is a tool that can record and store various information generated during code analysis. When we analyze the code, many meta-data could occur, such as summary of what we analyzed, what to do, additional requests, related documents and so on. These metadata could be written and stored in a separate file, but keeping these meta-data as a separate file is very cumbersome and, above all, very inefficient because meta-data and code are not interconnected. This extension is for these cases, this extension manage these meta-data associated with code without modifying the code. In fact, the Code Prism is not just for source code, it is for all documents. so it allows you to leave the necessary comments on all kinds of documents(.md, .json, etc.) as well as the source code The Code Prism is basically a code review program. but it's simple to use and includes useful features for code analysis. Enjoy! Getting StartedIn order to get started, install the CodePrism extension, and then following one of the following guides: ConceptMany developers spend as much time understanding and analyzing systems developed by others as developing their own programs. Sometimes you simply refer to a well-defined API, but sometimes you need to know enough about that system to participate in the development process. In this case, understanding and analyzing large and complex systems is a challenging task. It's not just the individual's ability and effort that you need when you want to understand what purpose this function was used, why they use it like this, and how it might affect other parts of the system. The Code Prism aims to help you understand and analyze systems There are a number of tools available to assist with analysis. These tools analyze the code on their own and display their information in documents and diagrams. Of course, we have to use these tools. But I think it's important to help you find the Aha-moment among the many pieces of information that a lot of tools give out. In the process of understanding and analysis, I noted that there are more information to be searched, referenced, and recorded than I thought. So I'm trying to make a tool that the whole system can come in at a glance by showing useful information as much as and effectively . As a starting point, I'm going to start with something that can be easily viewed and recorded with various information generated in the analysis process, related documents, sites, my own comments, and so on. FeaturesCode Prism is consist of 4 parts
Code Prism is an analytical tool, but it can also be used during development. Code Prism is also useful enough as a substitute for todo list, bookmark, so in my case, after I developed the Code Prism, I deleted all extension related todo list, bookmark. Recoding metadataThe Code Prism manage information associated with a specific part of the document without changing the source. The Code Prism manages this metadata as follows.
Prism fileThe prism file and the document correspond one-to-one, and one prism file may contain multiple IssueThe issue is a key structure in the Code Prism.
Note
Auto-searchIt takes a lot of searching to analyze something. With the help of a language server, VS Code can already be used for smart searches such as reference search and definition search. I don't think there's a particular need for a new search function, but I do think there's a need to use it more conveniently or display it effectively. When you select a symbol from the code, the Code Prism displays basic information about selected symbol in the definition view, such as the declaration and definition of this symbol by default. And I gathered various search methods in one place(top of the definition view). I also reduced the inconvenience of having to check the search results one by one using a search editor. These efforts of Code Prism are just about utilizing the existing VS Code functionality, but I found it convenient just to place various search functions in one place.
Link documentsAdaptive LinkThis feature creates links to specific parts of the code. Links that allow you to refer to a particular part of the code are useful sometimes If you want, You can select some part of your code and generate the link by context menu or keyboard shortcut(default Most of links to code is based on the location of the code. But link based on location is easily invalidated during the development phase where the location of code is constantly changing. So I made 1 + 1 link that is stored a specific part of the code, but rather than that, it was changed because it seems better to detect the change in the location of that part. Adaptive link can respond to changes in code locations. But it's not perfect. Most of all, content changes can't be helped Support mermaid diagram previewI'm sure most of you know about mermaid.js. The Code Prism supports only the preview of meraid.js, but it can detect the mermaid mark on the code. So when you see this mark, you'll see also I use mermaid offical site : https://mermaid.js.org/ 🔗 Release Notes1.4.4 - November 13, 2024I combined the code-anchor link and the 1+1 link to make it the adaptive link 1.4.3 - November 12, 2024fixed the bug about movement of issue's position 1.4.2 - November 12, 2024
1.4.1 - November 11, 2024fixed the bug that don't delete comments immediately when new comment was created in new document 1.4.0 - November 10, 2024
💚 Code Prism is base of 💚Thank all of you very much!!! 🔗 Following extension guidelinesEnsure that you've read through the extensions guidelines and follow the best practices for creating your extension. 🔗 For more information |