私はwindowsとmac共にsublimetextを使っているのですが、macでhtmlを書いている時に挙動がwindowsと違いました。
例えば下記のタグを書いたとして、
<div></div>
windowsではこの状態からタグの中でenterを押すと
<div> - </div>
子のタグを書くために1行空けてくれて、しかもインデントまでつけてくれるのですが、macだと
<div> </div>
ただ改行されるだけでした。
できればwindowsと同じようにインデントをつけてほしいのですが、設定等がわかりません。
下記は私がmacで設定しているファイル内容です。(windowsとの違いはテーマとスキーマだけです。)
{ "auto_complete_commit_on_tab": false, "auto_indent": true, "bold_folder_labels": true, "caret_style": "phase", "color_scheme": "Packages/User/SublimeLinter/itg.Monokai (SL).tmTheme", "default_encoding": "UTF-8", "detect_indentation": true, "disable_formatted_linebreak": true, "disable_tab_abbreviations_on_auto_complete": false, "disabled_single_snippet_for_scopes": "", "draw_minimap_border": true, "draw_white_space": "all", "font_face": "SourceHanCodeJP-Regular", "font_size": 12, "gutter": true, "highlight_line": true, "highlight_modified_tabs": true, "ignored_packages": [ "Vintage" ], "indent_subsequent_lines": true, "indent_to_bracket": true, "itg_scrollbar_small": true, "itg_sidebar_tree_medium": true, "itg_small_tabs": true, "line_numbers": true, "line_padding_bottom": 3, "line_padding_top": 3, "match_brackets_angle": true, "open_files_in_new_window": false, "preview_on_click": false, "scroll_past_end": true, "smart_indent": true, "sublimelinter_executable_map": { "javascript": "/usr/local/bin/node" }, "tab_size": 2, "theme": "itg.flat.dark.sublime-theme", "translate_tabs_to_spaces": false, "trim_automatic_white_space": true, "trim_trailing_white_space_on_save": true, "word_separators": "./\\()\"':,.;<>~!@#$%^&*|+=[]{}`~?", "word_wrap": true, "wrap_width": 0 }
あなたの回答
tips
プレビュー