{"id":21374146,"url":"https://github.com/gimly/vscode-matlab","last_synced_at":"2025-04-10T01:14:18.381Z","repository":{"id":2544331,"uuid":"46803662","full_name":"Gimly/vscode-matlab","owner":"Gimly","description":"MATLAB support for Visual Studio Code","archived":false,"fork":false,"pushed_at":"2023-04-26T19:23:16.000Z","size":441,"stargazers_count":184,"open_issues_count":43,"forks_count":35,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-10T01:14:09.081Z","etag":null,"topics":["extension","hacktoberfest","language","matlab","snippets","visual-studio-code"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Gimly.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2015-11-24T16:21:00.000Z","updated_at":"2025-04-03T15:00:38.000Z","dependencies_parsed_at":"2023-07-06T17:32:15.418Z","dependency_job_id":null,"html_url":"https://github.com/Gimly/vscode-matlab","commit_stats":{"total_commits":183,"total_committers":17,"mean_commits":"10.764705882352942","dds":0.4207650273224044,"last_synced_commit":"e71fd80fbda0108ed4b6fda89a3450a902fa7397"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gimly%2Fvscode-matlab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gimly%2Fvscode-matlab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gimly%2Fvscode-matlab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gimly%2Fvscode-matlab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gimly","download_url":"https://codeload.github.com/Gimly/vscode-matlab/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137891,"owners_count":21053775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["extension","hacktoberfest","language","matlab","snippets","visual-studio-code"],"created_at":"2024-11-22T08:29:45.341Z","updated_at":"2025-04-10T01:14:18.359Z","avatar_url":"https://github.com/Gimly.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MATLAB for Visual Studio Code\n\n## News\n\nAs I mentioned previously in GitHub's issues, managing this extension has become a challenge for me due to time constraints, despite the numerous contributions from users that have added functionalities and improved it over the years. I have been lagging to release new versions and add improvements.\n\nA few months ago, I was contacted by a team at Mathworks who expressed interest in the extension due to its popularity. They decided to create their own version with a better architecture and easier integration with Matlab, which I believe will benefit the user community. I appreciate the Mathworks team's interest and their kind and patient communication.\nYou can read their official announcement of this release here: https://blogs.mathworks.com/matlab/2023/04/26/do-you-use-visual-studio-code-matlab-is-now-there-too/\n\nFor those who have been using this extension, I regret to inform you that I will not be able to continue maintaining it due to my limited availability and will mark it as deprecated. I suggest that you migrate to the MathWorks official extension, which is now available and provides a better solution (see https://marketplace.visualstudio.com/items?itemName=MathWorks.language-matlab).\n\nFinally, I would like to express my sincere gratitude to everyone who has contributed to this extension over the years. I am humbled by its popularity and recognize that it would not have been possible without your valuable contributions. The MathWorks extension continues to be open source and welcomes contributions on their [GitHub repository](https://github.com/mathworks/matlab-extension-for-vscode).\n\n## Description\n\nThis extension adds language support for MATLAB to Visual Studio Code.\n\n[![Marketplace](https://vsmarketplacebadges.dev/version-short/Gimly81.matlab.svg)](https://marketplace.visualstudio.com/items?itemName=Gimly81.matlab)\n[![Installs](https://vsmarketplacebadges.dev/installs/Gimly81.matlab.svg)](https://marketplace.visualstudio.com/items?itemName=Gimly81.matlab)\n[![GitHub issues](https://img.shields.io/github/issues/Gimly/vscode-matlab.svg)](https://github.com/Gimly/vscode-matlab/issues)\n[![GitHub pull requests](https://img.shields.io/github/issues-pr/Gimly/vscode-matlab.svg)](https://github.com/Gimly/vscode-matlab/pulls)\n[![License](https://img.shields.io/github/license/Gimly/vscode-matlab.svg)](https://github.com/Gimly/vscode-matlab/blob/master/LICENSE)\n\n# Main features\n## Colorization \n![syntax](images/syntax.png)\n\n(imported from [MathWorks TextMate grammar](https://github.com/mathworks/MATLAB-Language-grammar))\n\n## Snippets\n![snippets](images/snippets.png)\n\n(Translated from TextMate's snippets)\n\n## Code Checking\nUses *mlint* for checking the MATLAB code for problems on save.\n![snippets](images/linter.png)\n\n## Usage\n### Install the extension in VS Code\n* Open the command palette using `Ctrl+Shift+P`\n* Type `ext install Matlab` in the command palette\n\n### Select MATLAB as a language\n* On the bottom-right corner, click on the *select language mode* button, if you have created a new file it should display *Plain Text*\n* Select *MATLAB* in the list of languages.\n\nAlternatively, saving the file with a `.m` extension, will allow VS Code to understand that it is a MATLAB file, and automatically select the language correctly.\n\n### Using snippets\n* Bring-up the *autocomplete* menu by hitting the `Ctrl+Shift` key combination\n* Select the snippet that you want to use in the list\n* Use `tab` to navigate through the snippet's variables\n\n### Setting-up linter\n* Open the *User Settings* by going to *File*\u003e*Preferences*\u003e*User Settings*\n* On the right pane, where you have the *settings.json* file open, add to the json file.\n\n\t`\"matlab.mlintpath\" : \"path to your mlint.exe file\"` \n\n\tFor example, on a PC : \n\t\n\t`\"matlab.mlintpath\": \"C:\\\\Program Files (x86)\\\\MATLAB\\\\R20XXY\\\\bin\\\\win32\\\\mlint.exe\"`\n\t\n\tAnd on a Mac :\n\t\n\t`\"matlab.mlintpath\": \"/Applications/MATLAB_R20XXY.app/bin/maci64/mlint\"`\n  \n  And on Linux:\n  \n  `\"matlab.mlintpath\": \"/usr/local/MATLAB/R20XXY/bin/glnxa64/mlint\"`\n  \n* Save your *settings.json* file\n* Now, when you open a Matlab document (*.m*), VS Code displays warnings and errors. \n  \n  **Remark:** If you don't want the *lint on save* option and you want to remove the error message being displayed when the extension activates, change the `matlab.lintOnSave` option in the settings file to `False`.\n\n#### Setting the linter configuration\nBy adding `\"matlab.linterConfig\" : \"path-to-linter-config-file\"` to your VSCode configuration file, you can pass a configuration file to the mlint call. Check [Matlab's documentation](https://uk.mathworks.com/help/matlab/ref/mlint.html) to create this configuration file.\n\n#### Setting the linter encoding\nFor some languages, like Chinese, the return of the linter is not using the default utf-8 encoding, but a different encoding (gb2312 for Chinese). If the linting doesn't show correctly, change the `matlab.linterEncoding` to the encoding used by your Windows console. For example, if your Windows is installed in Chinese, add `\"matlab.linterEncoding\" : \"gb2312\"` to your settings.json.\n\n### Changing the default file association\nVisual Studio Code's default file association for `.m` files is _Objective-C_, if you want to set up the default file association to be Matlab go to the Users preference (*File*\u003e*Preferences*\u003e*User Settings*) and add the following line:\n```\n\"files.associations\": {\"*.m\": \"matlab\"}\n```\n\n### Changing the default file encoding\nMATLAB default file encoding is not utf-8, but Visual Studio Code is using utf-8 as default. The following setting specifies the default encoding for MATLAB files in Visual Studio Code:\n````\n\"[matlab]\": { \"files.encoding\": \"windows1252\" }\n````\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgimly%2Fvscode-matlab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgimly%2Fvscode-matlab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgimly%2Fvscode-matlab/lists"}