Jump to content
  • Visual Studio 2022 17.6 will improve JavaScript and TypeScript syntax highlighting


    Karlston

    • 742 views
    • 2 minutes
     Share


    • 742 views
    • 2 minutes

    Microsoft is currently working on Visual Studio 2022 17.6 and one of the key highlights that’ll be included will be improved syntax highlighting when working on JavaScript/TypeScript files. With the update, the highlighting will be expanded to control keywords, strings in tags, escape characters, JSDocs, and more.

     

    The Redmond company decided to pay attention to improving syntax highlighting after it was requested by the Developer Community. It’s an important feature that allows software developers to differentiate different parts of complex code. Many programmers inherit projects from other employees and sifting through the code to work out what it does is easier when components are separated by different colours.

     

    In the gallery below, you can take a look at before and after comparisons of syntax highlighting in Visual Studio. Even if you don’t write code, you should be able to see how much of a difference the new highlighting makes.

    1682117221_jsdoc_sample-768x155_thumb.jp

     

    1682117223_methods_sample-768x281_thumb.

     

    1682117226_parameter_sample-768x301_thum

     

    1682117228_escape_sample-768x53_thumb.jp

     

    1682117231_variables_sample-768x252_thum

     

    1682117234_types_sample-768x99_thumb.jpg

     

    1682117237_keywords_sample-768x398_thumb

     

    Microsoft said that the different parts of the code, such as variables and escape characters, are mapped to different Display items. If you’re not a fan of the colour choices, just head to Tools > Options > Environment > Fonts and colours and select Text Editor from the Show settings for dropdown. You can then select the Display item and set the Item foreground, Item background, Font, and Size options as you like.

     

    If you don’t yet have Visual Studio 2022 Preview, you’ll need to download it from the dedicated website. If you do have it, just make sure you have the latest version installed.

     

     

    Visual Studio 2022 17.6 will improve JavaScript and TypeScript syntax highlighting


    User Feedback

    Recommended Comments

    There are no comments to display.



    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...