mathworks / mathworks/MATLAB-extension-for-vscode

Using `[\b – ]\b` couple in `fprintf()`

Open
#122 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
435
Forks
40
PR merge metrics
No merged PRs in 30d

Description

When using [\b – ]\b couple in fprintf() in VSCode there are 2 issues compared to the standard MATLAB command window:

  • output has a trailing ]
  • output is not colored

Example

fprintf('[\btest]\b\n')

Output in VSCode:
image

Output in MATLAB:
image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the MATLAB fprintf example in VS Code and comparing its output with the MATLAB command window. Then trace the extension's handling of fprintf output, backspaces, brackets, and terminal coloring. Done means the VS Code output matches MATLAB without the trailing bracket and preserves the expected coloring.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.