Skip to content

[Sticky Scrolling] Language Support in CDT #3952

@gsmith-dfc

Description

@gsmith-dfc

Using the CDT editor for the C language, sticky scrolling seems to use the fallback style based purely on indents when the code is formatted in the Allman style, where curly braces are on their own line. It does grab the case: label properly, as shown in the screenshots.

I would like the sticky scrolling to work like it apparently does in JDT now, where you get the actual useful line of context for the function, control statements, etc.

Image Image

This issue is similar to twwwt's comment referenced below:

Doesn't work so well when one uses a code format where opening braces of a block begin on a new line:

workspace-os_-polyde-cli_src_main_java_org_polyde_cli_Polyde_java-_Eclipse_IDE.pdf

For such formats the previous line should also be sticky to provide sufficient context.

What is more, the horizontal indentation doesn't seem to align perfectly when using tabs for indentation.

Originally posted by @twwwt in #2152

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions