sublime 列编辑的功能求助

2025-05-10 03:09:53
推荐回答(1个)
回答1:

Preferences.sublime-settings文件://Whileyoucaneditthisfile,it’sbesttoputyourchangesin//逗User/Preferences.sublime-settings地,whichoverridesthesettingsinhere.////Settingsmayalsobeplacedinfiletypespecificoptionsfiles,for//example,inPackages/Python/Python.sublime-settingsforpythonfiles.{//Setsthecolorsusedwithinthetextarea//主题文件的路径逗color_scheme地:逗Packages/ColorScheme–Default/Monokai.tmTheme地,//Notethatthefont_faceandfont_sizeareoverridenintheplatform//specificsettingsfile,forexample,逗Preferences(Linux).sublime-settings地.//Becauseofthis,settingthemherewillhavenoeffect:youmustsetthem//inyourUserFilePreferences.//设置字体和大小,必须在Settings-User里重写,这里设置没有任何效果逗font_face地:逗Consolas地,逗font_size地:12,//Validoptionsare逗no_bold地,逗no_italic地,逗no_antialias地,逗gray_antialias地,//逗subpixel_antialias地and逗no_round地(OSXonly)//字体选项:no_bold不显示粗体字,no_italic不显示斜体字,no_antialias和no_antialias关闭反锯齿//subpixel_antialias和no_round是OSX系统独有的逗font_options地:[],//Charactersthatareconsideredtoseparatewords//在文字上双击会全选当前的内容,如果里面出现以下字符,就会被截断逗word_separators地:逗./\\()\地‘-:,.;~!@#$%^&*|+=[]{}`~?地,//Settofalsetopreventlinenumbersbeingdrawninthegutter//是否显示行号逗line_numbers地:true,//Settofalsetohidethegutteraltogether//是否显示行号边栏逗gutter地:true,//Spacingbetweenthegutterandthetext//行号边栏和文字的间距逗margin地:4,//Foldbuttonsarethetrianglesshownintheguttertofoldregionsoftext//是否显示代码折叠按钮逗fold_buttons地:true,//Hidesthefoldbuttonsunlessthemouseisoverthegutter//不管鼠标在不在行号边栏,代码折叠按钮一直显示逗fade_fold_buttons地:true,//Columnsinwhichtodisplayverticalrulers//列显示垂直标尺,在中括号里填入数字,宽度按字符计算逗rulers地:[],//Settotruetoturnspellcheckingonbydefault//是否打开拼写检查逗spell_check地:false,//Thenumberofspacesatabisconsideredequalto//Tab键制表符宽度逗tab_size地:4,//Settotruetoinsertspaceswhentabispressed//设为true时,缩进和遇到Tab键时使用空格替代逗translate_tabs_to_spaces地:false,//Iftranslate_tabs_to_spacesistrue,use_tab_stopswillmaketaband//backspaceinsert/deleteuptothenexttabstop//translate_tabs_to_spaces设置为true,Tab和Backspace的删除/插入作用于制表符宽度//否则作用于单个空格逗use_tab_stops地:true,//Settofalsetodisabledetectionoftabsvs.spacesonload//false时禁止在载入的时候检测制表符和空格逗detect_indentation地:true,//Calculatesindentationautomaticallywhenpressingenter//按回车时,自动与制表位对齐逗auto_indent地:true,//Makesautoindentalittlesmarter,e.g.,byindentingthenextline//afteranifstatementinC.Requiresauto_indenttobeenabled.//针对C语言的逗smart_indent地:false,//Addswhitespaceuptothefirstopenbracketwhenindenting.Requires//auto_indenttobeenabled.//需要启用auto_indent,第一次打开括号缩进时插入空格看(没测试出来效果…)逗indent_to_bracket地:true,//Trimswhitespaceaddedbyauto_indentwhenmovingthecaretoffthe//line.//显示对齐的白线是否根据回车、tab等操作自动填补逗trim_automatic_white_space地:true,//Disableshorizontalscrollingifenabled.//Maybesettotrue,false,or逗auto地,whereitwillbedisabledfor//sourcecode,andotherwiseenabled.//是否自动换行,如果选auto,需要加双引号逗word_wrap地:false,//Settoavalueotherthan0toforcewrappingatthatcolumnratherthanthe//windowwidth//设置窗口内文字区域的宽度逗wrap_width地:0,//Settofalsetopreventwordwrappedlinesfrombeingindentedtothesame//level//防止被缩进到同一级的字换行逗indent_subsequent_lines地:true,//Drawstextcenteredinthewindowratherthanleftaligned//如果没有定义过,则文件居中显示(比如新建的文件)逗draw_centered地:false,//Controlsautopairingofquotes,bracketsetc//自动匹配引号,括号等逗auto_match_enabled地:true,//Wordlisttouseforspellchecking//拼写检查的单词列表路径逗dictionary地:逗Packages/Language–English/en_US.dic地,//Settotruetodrawaborderaroundthevisiblerectangleontheminimap.//Thecoloroftheborderwillbedeterminedbythe逗minimapBorder地keyin//thecolorscheme//代码地图的可视区域部分是否加上边框,边框的颜色可在配色方案上加入minimapBorder键逗draw_minimap_border地:false,//Ifenabled,willhighlightanylinewithacaret//突出显示当前光标所在的行逗highlight_line地:false,//Validvaluesare逗smooth地,逗phase地,逗blink地,逗wide地and逗solid地.//设置光标闪动方式逗caret_style地:逗smooth地,//Settofalsetodisableunderliningthebracketssurroundingthecaret//是否特殊显示当前光标所在的括号、代码头尾闭合标记逗match_brackets地:true,//Settofalseifyou’dratheronlyhighlightthebracketswhenthecaretis//nexttoone//设为false时,只有光标在括号或头尾闭合标记的两端时,match_brackets才生效逗match_brackets_content地:true,//Settofalsetonothighlightsquarebrackets.Thisonlytakeseffectif//match_bracketsistrue//是否突出显示圆括号,match_brackets为true生效逗match_brackets_square地:false,//Settofalsetonothighlightcurlybrackets.Thisonlytakeseffectif//match_bracketsistrue//是否突出显示大括号,match_brackets为true生效逗match_brackets_braces地:false,//Settofalsetonothighlightanglebrackets.Thisonlytakeseffectif//match_bracketsistrue//是否突出显示尖括号,match_brackets为true生效逗match_brackets_angle地:false,//EnablevisualizationofthematchingtaginHTMLandXML//html和xml下突出显示光标所在标签的两端,影响HTML、XML、CSS等逗match_tags地:true,//Highlightsotheroccurrencesofthecurrentlyselectedtext//全文突出显示和当前选中字符相同的字符逗match_selection地:true,//Additionalspacingatthetopofeachline,inpixels//设置每一行到顶部,以像素为单位的间距,效果相当于行距逗line_padding_top地:1,//Additionalspacingatthebottomofeachline,inpixels//设置每一行到底部,以像素为单位的间距,效果相当于行距逗line_padding_bottom地:1,//Settofalsetodisablescrollingpasttheendofthebuffer.//OnOSX,thisvalueisoverriddenintheplatformspecificsettings,so//you’llneedtoplacethislineinyourusersettingstooverrideit.//设置为false时,滚动到文本的最下方时,没有缓冲区逗scroll_past_end地:true,//Thiscontrolswhathappenswhenpressingupordownwhenonthefirst//orlastline.//OnOSX,thisvalueisoverriddenintheplatformspecificsettings,so//you’llneedtoplacethislineinyourusersettingstooverrideit.//控制向上或向下到第一行或最后一行时发生什么(没明白也没试出来)逗move_to_limit_on_up_down地:false,//Setto逗none地toturnoffdrawingwhitespace,逗selection地todrawonlythe//whitespacewithintheselection,and逗all地todrawallwhitespace//按space或tab时,实际会产生白色的点(一个空格一个点)或白色的横线(tab_size设置的制表符的宽度),选中状态下才能看到//设置为none时,什么情况下都不显示这些点和线//设置为selection时,只显示选中状态下的点和线//设置为all时,则一直显示逗draw_white_space地:逗selection地,//Settofalsetoturnofftheindentationguides.//Thecolorandwidthoftheindentguidesmaybecustomizedbyediting//thecorresponding.tmThemefile,andspecifyingthecolors逗guide地,//逗activeGuide地and逗stackGuide地//制表位的对齐白线是否显示,颜色可在主题文件里设置(guide,activeGuide,stackGuide)逗draw_indent_guides地:true,//Controlshowtheindentguidesaredrawn,validoptionsare//逗draw_normal地and逗draw_active地.draw_activewilldrawtheindent//guidescontainingthecaretinadifferentcolor.//制表位的对齐白线,draw_normal为一直显示,draw_active为只显示当前光标所在的代码控制域逗indent_guide_options地:["draw_normal"],//Settotruetoremovingtrailingwhitespaceonsave//为true时,保存文件时会删除每行结束后多余的空格逗trim_trailing_white_space_on_save地:false,//Settotruetoensurethelastlineofthefileendsinanewline//characterwhensaving//为true时,保存文件时光标会在文件的最后向下换一行逗ensure_newline_at_eof_on_save地:false,//Settotruetoautomaticallysavefileswhenswitchingtoadifferentfile//orapplication//切换到其它文件标签或点击其它非本软件区域,文件自动保存逗save_on_focus_lost地:false,//Theencodingtousewhentheencodingcan’tbedeterminedautomatically.//ASCII,UTF-8andUTF-16encodingswillbeautomaticallydetected.//编码时不能自动检测编码时,将自动检测ASCII,UTF-8和UTF-16逗fallback_encoding地:逗Western(Windows1252)地,//Encodingusedwhensavingnewfiles,andfilesopenedwithanundefined//encoding(e.g.,plainasciifiles).Ifafileisopenedwithaspecific//encoding(eitherdetectedorgivenexplicitly),thissettingwillbe//ignored,andthefilewillbesavedwiththeencodingitwasopened//with.//默认编码格式逗default_encoding地:逗UTF-8″,//Filescontainingnullbytesareopenedashexadecimalbydefault//包含空字节的文件被打开默认为十六进制逗enable_hexadecimal_encoding地:true,//Determineswhatcharacter(s)areusedtoterminateeachlineinnewfiles.//Validvaluesare‘system’(whatevertheOSuses),‘windows’(CRLF)and//‘unix’(LFonly).//每一行结束的时候用什么字符做终止符逗default_line_ending地:逗system地,//Whenenabled,pressingtabwillinsertthebestmatchingcompletion.//Whendisabled,tabwillonlytriggersnippetsorinsertatab.//Shift+tabcanbeusedtoinsertanexplicittabwhentab_completionis//enabled.//设置为enabled时,在一个字符串间按Tab将插入一个制表符//设置为true时,按Tab会根据前后环境进行代码自动匹配填补逗tab_completion地:true,//Enableautocompletetobetriggeredautomaticallywhentyping.//代码提示逗auto_complete地:true,//Themaximumfilesizewhereautocompletewillbeautomaticallytriggered.//代码提示的大小限制逗auto_complete_size_limit地:4194304,//Thedelay,inms,beforetheautocompletewindowisshownaftertyping///projectbasis.逗folder_exclude_patterns地:[".svn",".git",".hg","CVS"],逗file_exclude_patterns地:["*.pyc","*.pyo","*.exe","*.dll","*.obj","*.o","*.a","*.lib","*.so","*.dylib","*.ncb","*.sdf","*.suo","*.pdb","*.idb",".DS_Store","*.class","*.psd","*.db"],//Thesefileswillstillshowupinthesidebar,butwon’tbeincludedin//GotoAnythingorFindinFiles逗binary_file_patterns地:["*.jpg","*.jpeg","*.png","*.gif","*.ttf","*.tga","*.dds","*.ico","*.eot","*.pdf","*.swf","*.jar","*.zip"],//Listanypackagestoignorehere.Whenremovingentriesfromthislist,//arestartmayberequiredifthepackagecontainsplugins.//删除你想要忽略的插件,需要重启逗ignored_packages地:["Vintage"]}