镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

F# -> and <- in Visual Studio - is there a trick? #220

Closed

Description

@danieljsummers

I'm using 1.200 on Windows 10 using Visual Studio Community 2015. The font is great - I love the way it cleans up the display!

Nearly all of the ligatures are rendered properly. In the attached screenshot, you'll see <| rendered as the left-pointing triangle. F# uses -> to indicate the beginning of a function, or to delineate types in a signature; it uses <- to represent variable assignment (= is always a boolean operator unless you're explicitly initializing a variable). Neither of these arrows are being converted to their corresponding ligatures. I've tried some of the other arrows ( <== , <=< , etc.) and they work; it's just these two that don't.

Is there a setting I'm missing, or have I stumbled on a bug?

example

Activity

  1. stuart-lang commented on Jul 19, 2016

    @stuart-lang
  2. tonsky commented on Jul 19, 2016

    @tonsky
    Owner

    A lot of editors suffer one form or another of this. Some ligatures don’t work in Atom in certain syntaxes, for example. This is related to how “fair” tokenization for syntax highlight is implemented. I suspect some grammars “cheat” by highlighting - and > as separate tokens. You can’t notice it in a regular font, but that split has a bad effect on ligatures. This should be filed to VS bugtracker, if they have one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions