1,intellij idea怎么设置编码方式全部设置里 Editor / Colors & Fonts里 面【idea怎么调整代码格式,intellij idea怎么设置编码方式】
2,intellij怎么样才能对单个文件进行编码格式的转化插件似乎从不会考虑这种问题 , 还没见到听到有这种插件 。或许以后idea会有这样的功能,但idea总是有些地方和常人的观念不一样,并且他们在坚持着这种观念,比如swing开发弄得就巨麻烦,web开发又不支持jsp可视化开发,编码又只能整个idea环境用一样的,这导致我虽喜爱idea,但又不能完全依靠它.代码编辑器的底下有一栏是编码的,可以用鼠标点击,会弹出各种编码格式列表 , 选择其中一个,会弹出提示框问你是否要转换编码
3 , eclipse怎么设置编码格式eclipse可设置编码格式如下几处有一:修改工作空间默认编码导入一个项目工程,如果项目文件的编码与工具编码不一致 将会造成乱码 。在菜单导航栏上Window-->Preferences 打开"首选项"对话框,左侧导航树,导航到 General-->Workspace,选择想要的编码格式,点击Apply,点击OK.二:修改文件的编码有的时候导入项目文件,并没有导入到workspace,只是一个引用,这个时候如果有编码的问题,可以修改文件的编码查看.在Eclipse项目文件上右键,选择Properties,在Resource选择修改编码格式三:修改某文件类型的编码导航栏window-->preferences,打开"首选项"对话框,左侧导航树,导航到 Genera-->Content Types,右边找到要修改的文件的类型,在下面的Default encoding,输入框中输入UTF-8->Update->OK 四:修改单个文件的编码在包资源管理器右键点击文件->属性,改变文本文件编码格式为想要的
4,myeclipse怎么设置编码格式方法一:打开myeclipse,windows---->preferences打开"首选项"对话框 。左侧导航,导航中找到general---->workspace 。右侧窗口text file encoding,选择other,改变为utf-8,以后新建立工程其属性对话框中的text file encoding即为utf-8.点击“ok”保存 。方法二:打开myeclipse,windows---->preferences打开"首选项"对话框 。左侧导航,导航到general---->content types,右侧context types窗口,点开text树中每一颗子项 , 并在中输入"utf-8",点“update ”更新 。其它的如:java properties file、javascript等已经由eclipse缺省指定 。若开发中需要, 改变编码格式 。1 。全局编码设置:编码设置的方法:ToolBar-->Window-->Preferences-->General-->Workspace-->Text file encoding,设置合适的编码 。2 。局部编码设置:在源码按右键-->General-->Editors-->Test Editors-->Spelling-->Encoding,这里是设置单个文件的编码 。推荐还是使用全局编码设置吧MyEclipse编码设置:Windows-->Preferences-->MyEclipse(Enterprise Workbench)--> Files and Editors-->JSP-->右Encoding->(UTF-8)-->Update文件默认编码设置:Windows-->Preferences-->General-->Content Types, 然后在右边上面的框中打开Text, 选中Java Source File (你看到下面的框中有个*.java 就对了) , 然后在下面的“Default edcodng”文本框中输入“UTF-8”, 点“Update”,就OK了 。(什么文件的编码都可以在这里设置!) 其它的Edit-SetEnCoding 和Project-->Properties-->Resource-->Text File Encoding设置成继承自容器就可以了 。3 。Window-Preferences-General-Content Types-Text-Java Source File-UTF-85,如何自动调整代码格式把astyle.exe 复制到 C:\WINDOWS 目录里 , 省的指定路径VC6++ 设置方法菜单->工具->定制->工具菜单内容->新建菜单,参数如下命令行:astyle.exe变量:--style=k&r --brackets=break --indent=spaces --indent-cases --indent-preprocessor --pad-header --pad-oper --unpad-paren --keep-one-line-statements --keep-one-line-blocks --convert-tabs $(FileName)$(FileExt)初始目录: $(FileDir)VC2008 外部工具里设置,还可以添加快捷键命令:astyle.exe参数:--style=k&r --brackets=break --indent=spaces --indent-cases --indent-preprocessor --pad-header --pad-oper --unpad-paren --keep-one-line-statements --keep-one-line-blocks --convert-tabs $(ItemFileName)$(ItemExt)初始目录: $(ItemDir)CodeBlocks 设置差不多,很多绿色版的已经设置好了AStyle_2.02_windows.zipbin 目录里有官方编译好的Artistic Style 2.01Maintained by: Jim PatteeOriginal Author: Tal DavidsonUsage : astyle [options] Source1.cpp Source2.cpp [...]astyle [options] < Original > BeautifiedWhen indenting a specific file, the resulting indented file RETAINS theoriginal file-name. The original pre-indented file is renamed, with asuffix of ".orig" added to the original filename.如果你用vi编辑器来修改代码的话,可以在非编辑模式下用gg=g来调整代码格式 。astyle: tal davidsonusage , with asuffix of ": astyle [options] source1, the resulting indented file retains theoriginal file-name.02_windows: $(itemdir)codeblocks 设置差不多,省的指定路径vc6++ 设置方法菜单->:astyle;工具菜单内容-> , 还可以添加快捷键命令; beautifiedwhen indenting a specific file.zipbin 目录里有官方编译好的artistic style 2:--style=k&r --brackets=break --indent=spaces --indent-cases --indent-preprocessor --pad-header --pad-oper --unpad-paren --keep-one-line-statements --keep-one-line-blocks --convert-tabs $(filename)$(fileext)初始目录; original >:--style=k&r --brackets=break --indent=spaces --indent-cases --indent-preprocessor --pad-header --pad-oper --unpad-paren --keep-one-line-statements --keep-one-line-blocks --convert-tabs $(itemfilename)$(itemext)初始目录;定制->.]astyle [options] 命令行.exe变量;工具->:astyle , 很多绿色版的已经设置好了astyle_2.. the original pre-indented file is renamed; added to the original filename: jim patteeoriginal author.01maintained by.cpp source2: $(filedir)vc2008 外部工具里设置;新建菜单.orig".exe 复制到 c.cpp [.exe参数:\ 。
- 蓝锐
- 部落冲突电脑版
- mysql怎么设置时区 mysql时间显示设置
- ad血型与性格分析,血型性格分析有科学根据吗
- 云服务器游戏出现黑屏问题怎么解决? 云服务器游戏黑屏怎么办
- redis缓存失效怎么办 redis缓存数据不一致
- 如何修改戴尔服务器的IP地址? 戴尔服务器ip地址怎么改
- mongodb大公司案例 MongoDB公司怎么样
- mysql下到了c盘 mysql怎么不存到c盘
- mysql怎么把两个字段拼在一起 mysql字段拼接中文
