Skip to content

[Bug]: No auto-capitalization while typing #59

@steinhh

Description

@steinhh

Current Behavior

When I type control words, they are not auto-capitalized upon pressing space or enter, even if format-on-type is on. Not sure if this is new behaviour or it's always been this way. This may or may not be a bug per se in your view, but it is from my point of view - I'm so used to it from Emacs and having to save the file just to get control words capitalized is... awkward! Sorry, I'm having a bad day... week, actually. Feel free to downgrade to feature request if you think that's more appropriate ;-).

Curiously enough, there's a converse problem with indentation: it triggers too fast, bad for routine names starting with "end", as the line is immediately de-indented before finishing writing the routine name. Will file a separate one for that.

Expected Behavior

When formatOnType is on, capitalization rules should be applied whenever a word is completed (i.e., typing space, hitting enter, typing a comma, etc).

GitHub Repo

No response

Steps to Reproduce

  1. Turn on format-on-type & format-on-save, set control formatting to "upper"
  2. Type "begin" and space, nothing happens, but saving file or manually formatting file capitalizes to BEGIN
  3. Indentation for next line after hitting enter is correct, so format-on-type is in effect
  4. Save file, BEGIN is capitalized

Failure Logs

No response

Operating System

  • macOS (Intel x86_64)
  • macOS (ARM64)
  • Linux
  • Windows

IDL Version

N/A

Additional Information

Just tagging @martinwiesmann on this, he sees the same :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions