Android Studio keyboard shortcuts I use often.
SHIFT + F6to refactor methods, classes, and variable namesCTRL + Oto override methodsCOMMAND + N- Generate getter, setter, and constructor method for a class (when in editor pane)
| namespace Analogy | |
| { | |
| /// <summary> | |
| /// This example shows that a library that needs access to target .NET Standard 1.3 | |
| /// can only access APIs available in that .NET Standard. Even though similar the APIs exist on .NET | |
| /// Framework 4.5, it implements a version of .NET Standard that isn't compatible with the library. | |
| /// </summary>INetCoreApp10 | |
| class Example1 | |
| { | |
| public void Net45Application(INetFramework45 platform) |
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "PublicReadGetObject", | |
| "Effect": "Allow", | |
| "Principal": { | |
| "AWS": "*" | |
| }, | |
| "Action": "s3:GetObject", |
| { | |
| "vars": { | |
| "@gray-darker": "lighten(#000, 13.5%)", | |
| "@gray-dark": "lighten(#000, 20%)", | |
| "@gray": "lighten(#000, 33.5%)", | |
| "@gray-light": "lighten(#000, 46.7%)", | |
| "@gray-lighter": "lighten(#000, 93.5%)", | |
| "@brand-primary": "#5C5EA4", | |
| "@brand-success": "#5cb85c", | |
| "@brand-info": "#5bc0de", |
| using System; | |
| using System.Collections.Generic; | |
| using System.Data; | |
| using System.Data.SqlClient; | |
| using NHibernate; | |
| namespace NHibernate.Helpers | |
| { | |
| public static class SqlProcedureHelper | |
| { |
| // Copyright (c) 2013 Daniel Grunwald | |
| // | |
| // Permission is hereby granted, free of charge, to any person | |
| // obtaining a copy of this software and associated documentation | |
| // files (the "Software"), to deal in the Software without | |
| // restriction, including without limitation the rights to use, | |
| // copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| // copies of the Software, and to permit persons to whom the | |
| // Software is furnished to do so, subject to the following | |
| // conditions: |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <!-- Le styles --> | |
| <link href="../bootstrap/css/bootstrap.css" rel="stylesheet"> | |
| <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script> | |
| </head> | |
| <body> |
| package com.example.testchart; | |
| import java.util.*; | |
| import java.io.*; | |
| import java.text.DateFormat; | |
| import android.os.Bundle; | |
| import android.app.Activity; | |
| import android.util.Log; | |
| import android.view.*; |
| #!/bin/bash | |
| ############################################### | |
| # To use: | |
| # https://raw.github.com/gist/2776351/??? | |
| # chmod 777 install_postgresql.sh | |
| # ./install_postgresql.sh | |
| ############################################### | |
| echo "*****************************************" | |
| echo " Installing PostgreSQL" | |
| echo "*****************************************" |
| using System.Text.RegularExpressions; | |
| public static class StringHelpers { | |
| private const char _cr = '\u000D'; | |
| private const char _lf = '\u000A'; | |
| private const string _crlf = _cr + _lf; | |
| private static Regex _crlfRegex = new Regex(_cr + '|' + _lf + '|' + _crlf); | |
| public static string NormalizeNewline(this string str){ |