IDE Settings

Settings

IDE Settings

Introduction

Here are some of my IDE (programming environments, etc.) settings. See also: Text Editor Settings, Applications, Software.

Android Studio 2 (OS X 10.11)

Appearance and Behavior

Appearance

[ ] Hide navigation popups on focus loss (some popups are almost impossible to use)

[x] Show tool window bars

[x] Show tool window numbers

System Settings

[ ] Reopen last project on startup

Editor

General

[ ] Use soft wraps in editor

Strip trailing spaces on Save: All

[ ] Highlight modified lines in gutter

[ ] Highlight matched braces

[ ] Highlight current scope

[ ] Highlight usages of element at caret

[x] Smooth scrolling

[ ] Copy as rich text by default

Auto Import

Insert imports on paste: Ask

[x] Show import popup

Appearance

[ ] Caret blinking

[ ] Show right margin (useless, too much noise)

[ ] Show line numbers (usually not needed)

[ ] Show method separators

[ ] Show whitespaces (usually not needed)

[ ] Show vertical indent guides (useless, I can see with my eyes, too much noise)

[ ] Show code lense on scrollbar hover (useless, distraction, interrupts thinking)

[ ] Show breadcrumbs

[ ] Show CSS color preview icon in gutter

Code Completion

Case sensitive completion: None

Auto-insert when only one choice on: (none)

[ ] Autopopup code completion

Code Folding

[ ] Show code folding outline (I want to see all code all the time)

Collapse by default: (none) (I want to see all code all the time)

Editor Tabs

Placement: None (disturbing, I'm always closing them for nothing, same information on left)

Gutter Icons

(none) (red underlining of errors is enough for me)

Postfix Completion

[ ] Enable postfix completion (useless animations)

Smart Keys

[ ] Home

[ ] End

[ ] Insert pair bracket

[ ] Insert pair quote

[ ] Reformat block on typing }

[ ] Use "CamelHumps" words

[ ] Surround selection on typing quote or brace

[ ] Smart indent

[ ] Insert pair '}'

[ ] Insert documentation comment stub

Backspace

Unindent: To proper indent position

Reformat on paste: None

XML/HTML

[ ] Insert closing tag on tag completion

CSS

[ ] Select whole CSS identifiers on double click

Javadoc

[ ] Automatically insert closing tag

Colors & Fonts

Font

Primary font: [Menlo] Size: 12 Line spacing: 1.0

General

Code

Identifier under caret

Background: [E4E4FF] Error stripe mark: [BAA8FF]

Identifier under caret (write)

Background: [FFE4FF] Error stripe mark: [F0ADF0]

Editor

Caret

Foreground: [000000]

Caret row

Background: [FFFAE3]

Errors and Warnings

Typo

(none)

Language Defaults

Classes

Instance field

(none)

Instance method

(none)

Static field

(none)

Comments

Block comment

Foreground: [5A5A5A]

Line comment

Foreground: [5A5A5A]

Keyword

Block comment

Foreground: [000080]

Java

Class Fields

Constant (static final field)

Foreground: [660E7A]

Parameters

Type parameter

(none)

Code Style

Line separator (for new files): Windows (\r\n)

Right margin (columns): 100

[ ] Wrap on typing

[ ] Detect and use existing file indentss for editing

[ ] Show notification about detected indents

Java

Tabs and Indents

[ ] Use tab character

Tab size: 4

Indent: 4

Continuation indent: 8

[ ] Keep indents on empty lines

[ ] Do not indent top level class members

Spaces

Before Parentheses

[ ] Method declaration parentheses

[ ] Method call parentheses

[x] 'if' parentheses

[x] 'for' parentheses

[x] 'while' parentheses

Within

[x] Array initializer braces

[x] Grouping parentheses

[x] Method declaration parentheses

[x] Method call parentheses

[x] 'if' parentheses

[x] 'for' parentheses

[x] 'while' parentheses

Other

[x] After comma

Wrapping and Braces

Keep when reformatting

[x] Line breaks

[x] Comment at first column

[ ] Control statement in one line

[ ] Simple methods in one line

[x] Ensure right margin is not exceeded

Method call arguments

[x] Align when multiline

Group declarations

[ ] Align fields in columns

[ ] Align variables in columns

[ ] Align simple methods in columns

Blank Lines

Keep Maximum Blank Lines

In declarations: 3

In code: 3

Before '}': 2

Minimum Blank Lines

Before package statement: 1

After package statement: 1

Before imports: 0

After imports: 3

Around class: 2

After class header: 2

Inspections

Profile: Default

[-] Android > Lint > Correctness > Messages

[ ] Spelling error

[-] General

[x] Inconsistent line separators

[x] Problematic whitespace

[x] Internationalization Issues

[x] Lossy encoding

[-] Java

[-] Class Structure

[ ] Field can be local

[ ] Parameter can be local

[-] Declaration redundancy

[ ] Declaration access can be weaker (yellow 'public' is annoying)

[-] Imports

[x] Import from same package

[x] 'java.lang' import

[-] Security Issues

[x] 'public static' array field

[ ] Spelling

[ ] Typo

[ ] Process code

[ ] Process literals

[ ] Process comments

File Encodings

IDE Encoding: UTF-8

Project Encoding: UTF-8

Live Templates

(none)

Intentions

[ ] Android

[ ] C and C++

[ ] GLSL

[ ] Groovy

[-] Java

[x] I18N

[x] Imports

[ ] Language Injection

[ ] Other

[x] RegExp

[x] Declaration

[x] Check RegExp

[ ] XML

Spelling

Dictionaries

[ ] [bundled] english.dic

[ ] [bundled] jetbrains.dic

[ ] [bundled] android.dic

[ ] [bundled] objc.dic

Version Control

Confirmation

When files are created

(*) Show options before adding to version control

When files are deleted

(*) Show options before removing from version control

When empty changelist becomes inactive

(*) Show options before removing

Display options dialog when these commands are invoked

[x] Update

[x] Show "Clear Read-only Status" Dialog

[ ] Suggest to move uncommitted changes to another changelist

[ ] Force non-empty checkin comments

[ ] Clear initial commit message

Show patch in Explorer after creation: Ask

Create changelist on failed commit: Ask

Background

[ ] Perform update from VCS in background

[ ] Perform commit to VCS in background

[ ] Perform checkout from VCS in background

[ ] Perform Edit/Checkout in background

[ ] Perform Add/Remove in background

[ ] Perform revert in background

Ignored Files

File: <projectname>.iws

File: .idea/workspace.xml

GitHub

Host: github.com

Auth Type: Password

Login: -

Password: -

Git

Path to Git executable: /usr/bin/git

SSH executable: Built-in

[ ] Commit automatically on cherry-pick

[x] Warn if CRLF line separators are about to be committed

[x] Warn when committing in detached HEAD or during rebase

Update method: Branch default

[ ] Auto-update if push of the current branch was rejected

[ ] Allow force push

Build, Execution, Deployment

Instant Run

[ ] Enable Instant Run to hot swap code/resource changes on deploy (I don't need this, unnecessary messages in the log)

Xcode 8 (OS X 10.11)

Comments

GCC-like (C language) tools for OS X: Settings: Preferences: Downloads: Command Line Tools (includes LLVM, linker, Make) (info)

Text Editing

Editing

Show:

[ ] Line numbers

[ ] Code folding ribbon

[ ] Page guide at column

[ ] Highlight instances of selected symbol

Code completion:

[ ] Suggest completions while typing

[ ] Use Escape key to show completion suggestions

[ ] Automatically insert closing braces ("}")

[ ] Enable type-over completions

[ ] Automatically balance brackets in Objective-C method calls

While editing:

[x] Automatically trim trailing whitespace

Indentation

Prefer indent using: Spaces

Tab width: 4 spaces

Indent width: 4 spaces

Line wrapping:

[ ] Wrap lines to editor width

Syntax-aware indenting:

[ ] Automatically indent based on syntax

Automatic indent for:

[ ] "{"

[ ] "}"

[ ] ";"

[ ] ":"

[ ] "#"

[ ] Return

Last modified: August 17th, 2017

Author: Tomi Häsä (tomi.hasa@gmail.com)

URL: http://sites.google.com/site/tomihasa/ide-settings