code-formatting

editing the NetBeans source formatting standard

假如想象 提交于 2020-01-10 00:34:40
问题 Is there any way of changing the standard by which NetBeans automatically formats the code when doing "Source->Format"? I seem to remember seeing this option somewhere, but I can't find anything about it. 回答1: You can change a very limited number of settings related to formatting. open up netbeans IDE Go to tools->options click on Editor button on top left of the options dialog box click on the formatting tab select PHP from the language select box then you would be able to see the required

editing the NetBeans source formatting standard

老子叫甜甜 提交于 2020-01-10 00:34:05
问题 Is there any way of changing the standard by which NetBeans automatically formats the code when doing "Source->Format"? I seem to remember seeing this option somewhere, but I can't find anything about it. 回答1: You can change a very limited number of settings related to formatting. open up netbeans IDE Go to tools->options click on Editor button on top left of the options dialog box click on the formatting tab select PHP from the language select box then you would be able to see the required

Ctrl+Shift+f (Code Formatting) is not working properly in Eclipse Helios

三世轮回 提交于 2020-01-06 18:02:11
问题 When I try to format code in Eclipse Helios, by pressing ctrl + shift + f , the code is getting formatted, but the results are very ugly. Two or three statements in one line, for example. Indentation is also very poor. For ex: After formatting the code it looks like: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android

Eclipse C macro automatic formatting

不打扰是莪最后的温柔 提交于 2020-01-03 17:07:23
问题 I'm having a problem with using the automatic formatting in Eclipse CDT. For the most part it works great but it seems to insist on putting the semicolons after macro calls on a separate line. Is this a bug or did I mischeck a combination of formatting settings which lead to this? 回答1: The problem has been fixed in later versions of Eclipse CDT. Just try to download later version of Eclipse. 来源: https://stackoverflow.com/questions/5881284/eclipse-c-macro-automatic-formatting

How do I correctly install the Google Java Format plugin for IntelliJ IDEA?

点点圈 提交于 2020-01-03 16:52:07
问题 I want to install the Google Java Format plugin for IntelliJ IDEA. I have the latest 2016 community edition build (build #IC-163.11103.6, Jan 16th 2017), so version 1.2 of the plugin should be compatible. However, when I try to install it, I get an error: Plugin 'google-java-format' is incompatible with this version. Looking around for a solution, I found that this error is shown if the IntelliJ version isn't supported. However, the plugin page states that build 163, which is the one I have,

Is there a text editor that will “pretty print” for display without changing the underlying text?

感情迁移 提交于 2020-01-03 02:55:29
问题 There are two competing requirements 1) I want to pretty print so that I can read and understand code written by my peers 2) I don't want to check in the pretty printed code to source control because... It might not meet the coding standard where I work When reviewing history in source control, formatting changes obscure the 'real' changes. For discussion of problems checking in formatting changes, see this other stackoverflow question Committing when changing source formatting? At the same

automatic code-style-guide test for C++ [duplicate]

前提是你 提交于 2020-01-01 04:30:29
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: A free tool to check C/C++ source code against a set of coding standards? I am starting a c++ project involving several people I have no direct access to. We agreed on a coding style guide, which e.g. defines the casing for class members depending on the accessibility (i.e. privates in pascal case, publics and protecteds in camel case. Please, don't start discussions about the style guide. I had enough. Thank

indent python file (with pydev) in eclipse

只愿长相守 提交于 2020-01-01 04:11:06
问题 I'm a newbie in eclipse. I want to indent all the lines of my code and formatting the open file by pressing a shortcut or something like that... I know the CTRL+SHIFT+F (as it actually doesn't work in pydev!!) I've been searching for hours with no success. Is there any way to do that in eclipse. kind of like CTRL+K,D in visual studio, which formats and indents all the source code lines automatically? 回答1: I ... don't think this question makes sense. Indentation is syntax in Python. It doesn't

How to use code formatter in Xcode for Swift?

扶醉桌前 提交于 2019-12-31 08:42:49
问题 Xcode code formatter Swift I'm trying to auto format my code written in Swift. It's necessary if you're working in team and using CVS and don't want to merge for hours. Ctrl + I just makes an indent, but for example i want to have proper space between functions and just all the stuff like in Clang. 回答1: I write a extension app about format Swift code: Swimat There has two way to install brew cask install swimat Clone this repo, build and restart Xcode. See https://github.com/Jintin/Swimat for

Auto-formatting tool for VBscript

◇◆丶佛笑我妖孽 提交于 2019-12-30 05:44:04
问题 I'm looking for a light, free tool to format my Vbscript code. The only way I've found so far is to auto-format it in VisualStudio. Although, it's too much to launch VisualStudio for this purpose. Is there any web app or a free light tool for this purpose? Maybe a plugin for Notepad++? 回答1: Have you tried: VB Indent - paste your VBScript or VB code, press the button, and it'll indent for you. or ASP Indent - auto formatting of your ASP Code. It will not format HTML, though. It's only checking