Opens the user's .jsbeautifyrc file for editing in a new tab
(window)
| 23 | |
| 24 | |
| 25 | def open_u_config_rc(window): |
| 26 | """Opens the user's .jsbeautifyrc file for editing in a new tab""" |
| 27 | defaults = "{\n}" |
| 28 | old_jsbeautifyrc_path = join(get_root_dir(), '.jsbeautifyrc') |
| 29 | old_jsbeautifyrc = read_text_from_file(old_jsbeautifyrc_path, defaults) |
| 30 | |
| 31 | file_path = join(get_user_dir(), '.jsbeautifyrc') |
| 32 | window.open_file(ensure_file(file_path, default_contents=old_jsbeautifyrc)) |
| 33 | |
| 34 | |
| 35 | def open_sublime_settings(window): |
no test coverage detected