Jetbrainsmono: about `<>` `</>`

Created on 31 Jan 2020  路  7Comments  路  Source: JetBrains/JetBrainsMono

image

i think maybe need make <> and </> style is match

export default <></>
enhancement

Most helpful comment

jsx

function getGreeting {
  return <>Hello, Stranger.</>;
}

All 7 comments

@bluelovers Hi, can you be more specific? Is you suggesting that the < & > should be connected to the / from the both ends?

i feel </> looks too big then <>, maybe change <> a little bigger? or same as </> but without / and connected

or make </> a little small

@bluelovers Ok, see what you talking about. Will look in to it in v1.0.4

Just to note: <> is also used as an operator in some languages (VB.NET, OCaml, F# come to mind) and making it significantly bigger would probably make it look a bit worse.

@auduchinok Sure, thanks. Can you paste some code examples if you have them?

jsx

function getGreeting {
  return <>Hello, Stranger.</>;
}

@philippnurullin Sure! Here's some F#:

match reference.Module with
| :? IProjectPsiModule as projectPsiModule ->
    let referencedProject = projectPsiModule.Project
    if referencedProject <> project then
        result.Add(referencedProject.GetOutputFilePath(psiModule.TargetFrameworkId).FullPath)
| _ -> ()
if moduleKind <> AnonModule then
    x.ProcessReferenceNameSkipLast(lid)

Here's some VB.NET:

Protected Overrides Sub Run(methodDeclaration As IMethodDeclarationBase, data As ElementProblemAnalyzerData, consumer As IHighlightingConsumer)
  If methodDeclaration.Kind <> MethodDeclarationKind.SUB Then
    Return
  End If

  If methodDeclaration.AsKeyword IsNot Nothing Then
    consumer.AddHighlighting(New SubCannotHaveReturnTypeError(methodDeclaration))
  End If
End Sub

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MonstraG picture MonstraG  路  5Comments

thlinard picture thlinard  路  6Comments

RosaWagner picture RosaWagner  路  3Comments

dinhquochan picture dinhquochan  路  3Comments

frithrah picture frithrah  路  5Comments