Sublime Text 2 Code Formatting

后端 未结 4 515
醉梦人生
醉梦人生 2021-01-30 00:55

First let me say I come from a Microsoft background and Visual Studio is my bread and butter. It has a command (keybind is arbitrary) that auto-formats any code syntax

4条回答
  •  迷失自我
    2021-01-30 01:45

    Maybe this answer is not quite what you're looking for, but it will fomat any language with the same keyboard shortcut. The solution are language specific keyboard shortcuts.

    For every language you want to format, you must find and download a plugin for that, for example a html formatter and a C# formatter. And then you map the command for every plugin to the same key, but with a differnt context (see the link).

    Greets

提交回复
热议问题