Saturday, February 27, 2016

Bootsrap

Container

  • class="container": fixed-width, centered
  • class="container-fluid": full-width, small margin


The Grid System

  • class="row": defines a 12-column group
  • class="col-*-*": defines a cell spanning one or more columns
  • 12 columns
.col-md-1.col-md-1.col-md-1.col-md-1.col-md-1.col-md-1.col-md-1.col-md-1.col-md-1.col-md-1.col-md-1.col-md-1

.col-md-8.col-md-4

.col-md-4.col-md-4.col-md-4

.col-md-6.col-md-6

   
.col-xs-*: Phones (<768px)
.col-sm-*: Tablets (≥768px)
.col-md-*: Desktops (≥992px)
.col-lg-*: Desktops (≥1200px)



Helper classes

  • pull-right
  • text-right
  • visible-*
  • hidden-*
  • clearfix

Tables

  • class="table"
  • class="table table-striped"
  • class="table table-hover"

Forms

  • div around each row: class="form-group"
  • each input control: class="form-control"
  • if many controls in a row: class="input-group"
  • Note: Do not mix form groups directly with input groups.
    Instead, nest the input group inside of the form group.

Other controls

  • Alerts
  • Icons (removed in 4.0)
  • Pagination
  • Badges
  • Jumbotron
  • Progress bars
  • Panel, Well, Thumbnail (Cards in 4.0)
  • Drop-downs
  • Button groups
  • Button drop-downs

JavaScript controls

Require jQuery
  • Scrollspy
  • Tab
  • Tooltip
  • Carousel
  • Modal


Wednesday, February 24, 2016

vs 2015 shortcut keys

"View White Space" option and use CTRL+R/CTRL+W 


Ctrl + - , Ctrl + Shift + -:Move cursor back (or forwards) to the last place it was.

This switches open windows in Visual Studio:Ctrl + tab and the opposite Ctrl + Shift + tab

Ctrl+K, Ctrl+C : Comment a block , Ctrl+K, Ctrl+U Uncomment the block

TAB key for "snippets":E.g. type try and then hit the tab key twice.

Ctrl+] for matching braces and parentheses.

Ctrl+Shift+] selects code between matching parentheses.

Ctrl+Shift+F: Good old Find In Files.

Ctrl+Space, Visual Studio gives the possible completions.

Ctrl+K, Ctrl+D // Auto-(Re)Format

Ctrl+M, Ctrl+M. To expand/collapse the current code block.

Ctrl + .(dot) : automatically insert the import namespace, especially for adding event handlers and "using" statements.

Shift+ESC:This hides/closes any of the 'fake window' windows in Visual Studio.

Ctrl+I for incremental search

Ctrl+M, Ctrl+O : collapse to definitions. I use it all the time together with #regions

Insert snippet:Ctrl+K, Ctrl+S ---useful for #region

"prop" and hit tab.. stubs out property for you...

Select word: Ctrl+W

Alt-W U to auto collapse everything when in Full screen mode when it all gets too much

Ctrl + U :Converts the currently selected text to lower case
Ctrl + Shift + U :Converts the currently selected text to upper case

SHIFT + ALT + Arrow Key :multi Select columns of text
or
alt+mouse select : multi Select columns of text

CTR+SHIFT+> :Zoom In
CTR+SHIFT+< :Zoom out


Shift+F9 : quickwatch window
Go to defination : F12
find all reference :shift+F12
run to cursor : ctrl + F10







Showing hidden windows
---------------------------
ctrl+alt+L + Solution explorer

ctrl+alt+S + Server explorer

ctrl+alt+O + Output

ctrl+alt+X + Toolbox

ctrl+shift+W, 1 + Watch

ctrl+\, E + Error list



ctrl+shift+C + Class view

Encrypt/Decrypt the App.Config

Program.cs using System; using System.Diagnostics; using System.IO; namespace EncryptAppConfig {     internal class Program     {         pr...