假设我有set cindent在.vimrc
def func()后面Enter,然后键入end,它缩进(不对齐def)
如何缩进的end关键字(将其调整到def).
即使使用endwise.vim plugin不解决问题
https://github.com/tpope/vim-endwise.git
它增加了自动的end关键字,但再次indented
我从谷歌代码下载了AlgoTrader的开源版本并将其导入Eclipse.有两个项目algotrader和algotrader-strat.但问题是它们不被eclipse识别为java项目.我意识到当我尝试添加jar文件并构建路径时.项目文件夹中没有"J".所以我的问题是有一种方法可以将这些项目识别为java.如果是的话怎么办呢?谢谢.
https://code.google.com/p/algo-trader/wiki/AlgoTraderDocumentation#Installation

考虑这个Ruby代码:
puts "*****"
puts " *"
puts " "
puts "*****"
puts " *"
Run Code Online (Sandbox Code Playgroud)
我的输出是这样的:
*****
*
*****
*
Run Code Online (Sandbox Code Playgroud)
为什么这个空格不会像Scite中的*字符一样填充空格?我已经在使用Java的Eclypse中尝试过,它运行得很好.
即使光标位于当前行的中间,此快捷方式也应该有效.就像在带有SHIFT+的Eclipse中一样ENTER.
我试图用Recursion和BigIntegers做Factorial,但eclipse抱怨BigInteger.我知道这个程序本来应该很简单,但它给我带来了麻烦.这是代码.
import java.util.Scanner;
import java.math.BigInteger;
public class Factorial
{
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
System.out.println("Enter integer");
BigInteger n = input.nextBigInteger();
System.out.println("Factorial of " + n + " is " + fact(n));
}
public static int fact(BigInteger n)
{
if(n ==0)
{
return 1;
}
else
{
return n * fact(n-1);
}
}
}
Run Code Online (Sandbox Code Playgroud) java ×2
ruby ×2
auto-indent ×1
biginteger ×1
eclipse ×1
factorial ×1
formatting ×1
notepad++ ×1
scite ×1
vim ×1