https://alexbochman.github.io/ClassesAndProjects/SW-Eng/Algo-MateProject/Algo-Mate.html#
- Make sure Visual Studio Code is installed. Dowload here: https://code.visualstudio.com/download
- Download and install the extension
- Option 1: From Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=AlexBochman.algo-mate
- Option 2: From within VS Code, click on the extensions tab on the left-hand sidebar and search for "Algo-Mate"
- Make sure Visual Studio Code is installed. Dowload here: https://code.visualstudio.com/download
- Clone the latest version of Algo-Mate: https://github.com/alexbochman/Algo-Mate.git
- Open the Algo-Mate project in VS Code
- Make any changes to the files in the "src" folder, or the package.json
- Click Run > Start Debugging to test Algo-Mate
- In the VS Code development window that pops up
- You'll see [Algo-Mate] on the status bar. Clicking it will bring up UI options.
- Typing out any of the prefixs from the any of the JSON files within a file that qualifies (.cpp, .java, .js, .py) will display design patterns that can be autocompleted.
- After autocompleting a design pattern, points of interest (POI) will be highlighted. They can be modified, and groups of POIs will be changed automatically while still highlighted.
- Hitting tab will navigate to the next POI.
- Hitting shift+tab will navigate back to the previous POI.
Results are based off of data collected when the extension is activated. To simulate a user autocompleting a design pattern within their file, we've written code to pull the design pattern from a JSON file in the same manner, but we're printing it to the console instead of the user's file. The data is iteratively generated, stored within an array, and then exported to a file named data.csv. Steps to reproduce the data and display it graphically are listed below.
- Dowload and open up the project in VS Code.
- Start the VS Code debugger by navigating to Run > Start Debugging (F5)
- (!IMPORTANT!) In the [Extension Development Host] window that pops up, navigate (File > Open Folder) to a location where you'd like the data.csv file to be stored.
- Recommended: Navigate to the root of the project folder where the Algo_Mate_Results.py file is located.
- Execute the extension by navigating to View > Command Palette and searching for Hello World.
- In the original VS Code window, you will see the data being printed to the console. The data.csv will have been generated and exported to the workspace folder that was opened in step 3.
- Make sure numpy, pandas, and matplotlib are all installed in your CLI
- In your CLI, run the command
python3 Algo_Mate_Results.py data.csv
to generate the histogram in a pop-up window