Advertisement
Guest User

Untitled

a guest
Sep 13th, 2021
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.76 KB | None | 0 0
  1. {
  2. // Simply using `node` without specifying a path sometimes doesn't work :(
  3. // https://github.com/victorporof/Sublime-HTMLPrettify#oh-noez-command-not-found
  4. // http://nodejs.org/#download
  5. "node_path":
  6. {
  7. "windows": "C:/Program Files/nodejs/node.exe",
  8. "linux": "/usr/bin/nodejs",
  9. "osx": "/usr/local/bin/node"
  10. },
  11.  
  12. // Automatically format when a file is saved.
  13. "format_on_save": false,
  14.  
  15. // Automatically format when a file is opened. (Sublime Text 3 only)
  16. "format_on_open": false,
  17.  
  18. // Automatically format when a file is focused. (Sublime Text 3 only)
  19. "format_on_focus": false,
  20.  
  21. // Automatically format when a file loses focus. (Sublime Text 3 only)
  22. "format_on_focus_lost": false,
  23.  
  24. // Automatically format while a file is being edited. (Experimental / Sublime Text 3 only)
  25. "format_while_editing": false,
  26.  
  27. // Only format the selection if there's one available.
  28. "format_selection_only": true,
  29.  
  30. // Save to a temporary file before prettifying.
  31. "save_to_temp_file_before_prettifying": true,
  32.  
  33. // Settings determining which files are allowed to be prettified.
  34. // !!! All the keys below need to be included in your user settings for them to work. !!!
  35. "global_file_rules":
  36. {
  37. // Be sure to include all of the `html`, `css`, `js` and `json` keys in your user settings
  38. // if you want to be able to prettify the default files as well.
  39. "html":
  40. {
  41. "allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg", "vue"],
  42. "allowed_file_syntaxes": ["html", "xml", "vue"],
  43. "disallowed_file_patterns": []
  44. },
  45. // Be sure to include all of the `html`, `css`, `js` and `json` keys in your user settings
  46. // if you want to be able to prettify the default files as well.
  47. "css":
  48. {
  49. "allowed_file_extensions": ["css", "scss", "sass", "less"],
  50. "allowed_file_syntaxes": ["css", "sass", "less"],
  51. "disallowed_file_patterns": []
  52. },
  53. // Be sure to include all of the `html`, `css`, `js` and `json` keys in your user settings
  54. // if you want to be able to prettify the default files as well.
  55. "js":
  56. {
  57. "allowed_file_extensions": ["js", "jsx"],
  58. "allowed_file_syntaxes": ["javascript", "ecma", "react", "babel"],
  59. "disallowed_file_patterns": []
  60. },
  61. // Be sure to include all of the `html`, `css`, `js` and `json` keys in your user settings
  62. // if you want to be able to prettify the default files as well.
  63. "json":
  64. {
  65. "allowed_file_extensions": [
  66. "json",
  67. "babelrc",
  68. "eslintrc",
  69. "jshintrc",
  70. "jsbeautifyrc",
  71. "sublime-settings",
  72. "sublime-keymap",
  73. "sublime-commands",
  74. "sublime-menu"
  75. ],
  76. "allowed_file_syntaxes": ["json"],
  77. "disallowed_file_patterns": []
  78. }
  79. },
  80.  
  81. // Respect `.editorconfig` rules, overriding settings from `.jsbeautifyrc`.
  82. // Note that `use_editor_syntax` and `use_editor_indentation` have precedence
  83. // and will always override any other settings from any configuration file
  84. // like `.jsbeautifyrc` and `.editorconfig`.
  85. "respect_editorconfig_files": true,
  86.  
  87. // Use current syntax to determine file type, instead of the extension.
  88. "use_editor_syntax": true,
  89.  
  90. // Use current identation settings to override the ones from `.jsbeautifyrc`.
  91. "use_editor_indentation": false,
  92.  
  93. // Log the settings passed to the prettifier from `.jsbeautifyrc`.
  94. "print_diagnostics": true
  95. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement