VSCode配置matlab编译环境

本文介绍了如何在VisualStudioCode(VSCode)中搭建MATLAB的运行环境,包括安装相关插件,以及在setting.json文件中配置matlab.mlintpath和matlab.matlabpath路径,确保它们与MATLAB安装路径一致,以实现MATLAB代码在VSCode中的编译和运行。
摘要由CSDN通过智能技术生成

本文主要内容是在VSCode中搭建matlab运行环境的过程。

VSCode配置matlab编译环境

需要安装Matlab相关插件,并对setting.json文件进行配置。

setting.json文件的{}中加入如下配置代码:

/***********************************
*  下面为matlab编译环境配置
***********************************/

    "matlab.mlintpath": "D:\\MATLAB\\bin\\win64\\mlint.exe",
    "matlab.matlabpath": "D:\\MATLAB\\bin\\matlab.exe",
    "matlab.linterEncoding": "gb2312", 

    "code-runner.executorMap": {
        "matlab":"cd $dir && matlab -nosplash -nodesktop -r $fileNameWithoutExt",
    },

    "files.associations": {
        "*.m":"matlab",
    },

    "code-runner.runInTerminal": true,

    "[matlab]": {
        "files.encoding": "gb2312",
    },
    
    "files.autoGuessEncoding": true,
    "workbench.colorTheme": "One Dark Pro Darker",
    "workbench.iconTheme": "vscode-icons",
    "search.smartCase": true,
    "editor.suggestSelection": "first",
    "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
    "files.autoSave": "afterDelay",
    "terminal.integrated.commandsToSkipShell": [
        "language-julia.interrupt"
    ],
    "julia.symbolCacheDownload": true,
    "tabnine.experimentalAutoImports": true,
    "vsicons.dontShowNewVersionMessage": true,
    "editor.fontFamily": "Cascadia Code, 'Courier New', monospace",
    "security.workspace.trust.enabled": false,
    "editor.fontSize": 13,

需要注意 matlab.mlintpath 和 matlab.matlabpath 的地址是否能够和自己MATLAB安装后对应的子程序的地址相匹配。否则无法在VSCode中运行matlab代码。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ywwsnowboy

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值