mathworks / mathworks/MATLAB-extension-for-vscode

Provide auto-coding of `end` keywords

Open
#52 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Is your feature request related to a problem? Please describe.
When writing a function, loop, or an if-statement, the end keyword for the closing of the block should be automatically inserted, similar to in the MATLAB Editor.

Describe the solution you'd like
The end keyword should be automatically inserted. For example:

  1. Type if true
if true% <-- cursor is here
  1. Press enter
if true
    % <-- cursor is here
end

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

No file, test, or entry point is named in the issue. Start by locating the extension's handling of MATLAB editing and indentation, then determine how the requested Enter-key behavior should work for block-opening statements; done means matching the shown insertion of an indented line and its closing end keyword.

Written by the indexing model from the issue text.

Assessment

Tech stack
matlab, typescript, vscode
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.