vscode

Visual Studio Code, a lightweight free editor from Microsoft with many IDE features

How to get it

Customizing it

You’ll likely need to add some “extensions” for the programming languages that you want to use (Java, C++, etc.)

Tips and Tricks

Settings for Java Formatting

If you want to use the “fluent” format for code such as:

@Override
  protected void configure(HttpSecurity http) throws Exception {
    http
        .authorizeRequests()
        .antMatchers("/", "/greeting", "/login**", "/webjars/**", "/error**", "/searchResults**", "/search/**")
        .permitAll()
        .anyRequest()
        .authenticated()
        .and()
        .oauth2Login()
        .loginPage("/login")
        .and()
        .logout()
        .deleteCookies("remove")
        .invalidateHttpSession(true)
        .logoutUrl("/logout")
        .logoutSuccessUrl("/")
        .permitAll();
  }

then check out this post: https://github.com/redhat-developer/vscode-java/issues/1126

Mac OS Specific

On MacOS, if you want to be able to type code . at the Terminal command line to open vscode in the current directory, here’s what you need to do: