Wednesday, November 20, 2013

Xcode Keyboard Shortcuts

Xcode Keyboard Shortcuts and Gestures: Menu Command Shortcuts (By Menu)


Menu Command Shortcuts (By Menu)

Each table in this section lists the commands in an Xcode application menu and the keyboard shortcuts associated with each command. Entries appear in the order in which they appear in the menu. The following tables are available:

Table 1-1  Xcode menu command shortcuts
Command
Key Binding
Shortcut
About Xcode
Preferences…⌘,Command-,
Hide Xcode⌘ H,viCommand-H,fr
Hide Others⌥ ⌘ H,viOption-Command-H,fr
Show All
Quit Xcode⌘ Q,azCommand-Q

Table 1-2  File menu command shortcuts
Command
Key Binding
Shortcut
New Tab⌘TCommand-T
New Window⇧⌘TShift-Command-T
New File…⌘NCommand-N
New Target…
New Project…⇧⌘NShift-Command-N
New Workspace⌃⌘NControl-Command-N
New Group⌥⌘NOption-Command-N
New Group from Selection
Add Files…⌥⌘AOption-Command-A
Open…⌘OCommand-O,fr
Open Quickly…⇧⌘OShift-Command-O
Close Window⌘ In,plCommand-W,fr
Close All Windows⌥ ⌘ In,plOption-Command-W
Close Tab⇧ ⌘ In,plShift-Command-W
Close Other Tabs⌥ ⇧ ⌘ In,plOption-Shift-Command-W
Close Document^ ⌘ In,plControl-Command-W,it
Close Workspace
Save⌘ S,cebCommand-S
Save All⌥ ⌘ S,cebOption-Command-S
Save Multiple…⌥ ⇧ ⌘ S,cebOption-Shift-Command-S
Save As…⇧ ⌘ S,cebShift-Command-S
Revert…
Unlock…
Show in Finder
Open with External Editor
Workspace Settings…
Commit…⌥ ⌘ C,viOption-Command-C
Update…⌥⌘XOption-Command-X
Update All⌃⌥⌘XControl-Option-Command-X
Merge…
Discard Changes…
Add
Ignore
Mark as Resolved
Refresh Status
Show Repository Status
Repositories…
Create Snapshot…^ ⌘ S,cebControl-Command-S
Page Setup…⇧ ⌘ P,htShift-Command-P
Print…⌘ P,htCommand-P

Table 1-3  Edit menu command shortcuts
Command
Key Binding
Shortcut
Undo⌘ Z,plCommand-Z,fr
Redo⇧ ⌘ Z,plShift-Command-Z
Cut⌘XCommand-X
Copy⌘ C,viCommand-C
Paste⌘ V,csCommand-V,fr
Paste Special⌥ ⌘ V,csOption-Command-V,fr
Paste and Match Style⌥ ⇧ ⌘ V,csOption-Shift-Command-V
Duplicate⌘DCommand-D
Delete
Select All⌘ACommand-A
Find in Workspace…⇧ ⌘ F,isShift-Command-F
Find and Replace in Workspace…⌥ ⇧ ⌘ F,isOption-Shift-Command-F
Find…⌘ F,isCommand-F
Find and Replace…⌥ ⌘ F,isOption-Command-F
Find Next⌘ G,viCommand-G
Find Previous⇧ ⌘ G,viShift-Command-G
Use Selection for Find⌘ E,noCommand-E,fr
Use Selection for Replace⇧ ⌘ E,noShift-Command-E
Filter in Navigator⌥ ⌘ J,csOption-Command-J
Filter in Library⌥ ⌘ L,mtOption-Command-L,fr
Show Fonts⌃⇧⌘TControl-Shift-Command-T
Bold
Italics
Underline
Show Colors
Show Spelling and Grammar⌘:Command-:
Check Document Now
Check Spelling While Typing
Check Grammar With Spelling
Correct Spelling Automatically
Show Substitutions
Smart Copy/Paste
Smart Quotes
Smart Dashes
Smart Links
Data Detectors
Text Replacement
Make Upper Case
Make Lower Case
Capitalize
Start Speaking
Stop Speaking
Rename
Extract
Create Superclass
Move Up
Move Down
Encapsulate

Table 1-4  View menu command shortcuts
Command
Key Binding
Shortcut
Project⌘1Command-1
Symbol⌘2Command-2
Search⌘3Command-3
Issue⌘4Command-4
Debug⌘5Command-5
Breakpoint⌘6Command-6
Log⌘7Command-7
Show Navigator⌘0Command-0
Standard⌘↩Command-↩,fr
Assistant⌥⌘↩Option-Command-↩,fr
Version⌥⇧⌘↩Option-Shift-Command-↩
Show Related Items⌃1Control-1
Show Previous History⌃2Control-2
Show Previous Files History⌃⌘2Control-Command-2
Show Next History⌃3Control-3
Show Next Files History⌃⌘3Control-Command-3
Show Top Level Items⌃4Control-4
Show Group Files⌃5Control-5
Show Document Items⌃6Control-6
Show Issues⌃7Control-7
Add Assistant Editor
Remove Assistant Editor^ ⇧ ⌘ In,plControl-Shift-Command-W
Reset Editor⌥ ⇧ ⌘ Z,plOption-Shift-Command-Z
Assistant Editors on Right
Assistant Editors on Bottom
Assistant Editors on Left
Assistant Editors on Top
Assistant Editors Stacked Horizontally
Assistant Editors Stacked Vertically
Assistant Editors Stacked Horizontally Right to Left
Assistant Editors Stacked Vertically Bottom to Top
Show Toolbar Bar
Show Tab Bar
Show Debug area⇧ ⌘ The,cyShift-Command-Y

Table 1-5  Navigate menu command shortcuts
Context
Command
Key Binding
Shortcut
Reveal in Project Navigator⌘ L,mtCommand-L,fr
Open in Adjacent Editor⌘<Command-<
Go Forward⌃⌘⇢Control-Command-Right Arrow
Go Forward in Alternate Editor⌃⌥⌘⇢Control-Option-Command-Right Arrow
Go Back⌃⌘⇠Control-Command-Left Arrow
Go Back in Alternate Editor⌃⌥⌘⇠Control-Option-Command-Left Arrow
Jump to Selection⌘ J,csCommand-J
Jump to Definition⇧⌘DShift-Command-D
Move Focus To Next Area⌥⌘KOption-Command-K
Move Focus To Previous Area⌥⇧⌘KOption-Shift-Command-K
Interface BuilderJump to Next Object with Clipped Content
Jump to Previous Object with Clipped Content
Source editorJump to Counterpart⌃⌘⇡Control-Command-Up Arrow
Jump To…⇧ ⌘ J,csShift-Command-J
Jump to Next Placeholder⌃/Control-/
Jump to Previous Placeholder⌃?Control-?
Jump to Next Issue⌘'Command-'
Jump and Fix Next Issue⌃⌘'Control-Command-'
Jump to Previous Issue⌘"Command-"
Jump and Fix Previous Issue⌃⌘"Control-Command-"

Table 1-6  Editor menu command shortcuts
Context
Command
Key Binding
Shortcut
Data modelShow Grid
Show Page Breaks
Add Entity
Add Fetch Request
Add Configuration
Add Attribute⌃⌘AControl-Command-A
Add Fetched Property
Add Relationship⌃⌘RControl-Command-R
Import…
Create NSManagedObject subclass…
DocumentationExplore Documentation
Search Documentation
Documentation Bookmarks
Zoom In
Zoom Out
Actual Size
Add Bookmark
History
Interface BuilderShow Bounds Rectangles
Show Layout Rectangles
Snap to Guides
Live Autoresizing,it
Align Left Edges⌘[Command-[
Align Right Edges⌘]Command-]
Align Top Edges
Align Bottom Edges
Align Horizontal Centers
Align Vertical Centers
Align Baselines
Align Horizontal Center In Container
Align Vertical Center In Container
Send to Front
Send to Back
Send Forward
Send Backward
Unembed
Size to Fit⌘=Command-=
Add Horizontal Guide⌘_Command-_
Add Vertical Guide⌘|Command-|
Reveal in Document Structure
Simulate Document
PDFAutomatically Resize
Zoom In
Zoom Out
Actual Size
Single Page
Single Page Continuous
Two Pages
Two Pages Continuous
Next Page⌥⌘⇣Option-Command-Down Arrow
Previous Page⌥⌘⇡Option-Command-Up Arrow
RTFInsert Page Break
Insert Line Break
Insert Paragraph Break
Show Ruler
Add Link…
Allow Hyphenation
Scripting definitionMake Text Bigger⌘+Command-+
Make Text Smaller⌘-Command--
Source codeShow Completions⌃\Control-\
Edit All in Scope^ ⌘ E,noControl-Command-E,it
Fix All in Scope^ ⌘ F,isControl-Command-F
Show Issue
Show All Issues⌃⌘MControl-Command-M
All Issues
Errors Only
Balance Delimiter
Re-Indent
Shift Right⌘]Command-]
Shift Left⌘[Command-[
Move Line Up⌥⌘[Option-Command-[
Move Line Down⌥⌘]Option-Command-]
Comment Selection⌘/Command-/
Fold⌥⌘⇠Option-Command-Left Arrow
Unfold⌥⌘⇢Option-Command-Right Arrow
Unfold All
Fold Methods & Functions⌥⇧⌘⇠Option-Shift-Command-Left Arrow
Unfold Methods & Functions⌥⇧⌘⇢Option-Shift-Command-Right Arrow
Fold Comment Blocks⌃⇧⌘⇠Control-Shift-Command-Left Arrow
Unfold Comment Blocks⌃⇧⌘⇢Control-Shift-Command-Right Arrow
Focus Follows Selection
Show Invisibles
Xcode projectAdd Target…
Hex editorOverwrite Mode⌥⇧⌘OOption-Shift-Command-O

Table 1-7  Product menu command shortcuts
Command
Variant
Key Binding
Shortcut
Run⌘RCommand-R
Run…1⌥⌘ROption-Command-R
Test⌘TCommand-T
Test…1⌥⌘TOption-Command-T
Profile⌘ICommand-I
Profile…1⌥⌘IOption-Command-I
Analyze⌃⌘BControl-Command-B
Analyze…1⌃⌥⌘BControl-Option-Command-B
Archive
Build ForBuild For Running⇧⌘RShift-Command-R
Build For Testing⇧⌘UShift-Command-U
Build for Profiling⇧⌘IShift-Command-I
Build for Archiving
Perform ActionRun Without Building⌃⌘RControl-Command-R
Test Without Building⌃⌘UControl-Command-U,it
Profile Without Building⌃⌘IControl-Command-I
Build⌘BCommand-B
Clean⇧⌘KShift-Command-K
Clean Build Folder…⌥⇧⌘KOption-Shift-Command-K
Stop⌘.Command-.
DebugPause,de^ ⌘ The,cyControl-Command-Y,it
Step IntoF7Function 7
Step OverF6Function 6
Step OutF8Function 8
Step Into Thread^ ⇧ F7,isControl-Shift-Function 7
Step Into Instruction^ F7,isControl-Command-Function 7
Step Over Thread^ ⇧ F6,isControl-Shift-Function 6
Step Over Instruction^ F6,isControl-Function 6
Add Breakpoint at Current Line⌘\Command-\
Activate Breakpoints
Deactivate Breakpoints
⌘ The,cyCommand-Y,fr
Shared Libraries...
Clear Console⌘KCommand-K
Window BehaviorNormal
Xcode Behind
Xcode In Front
Edit Scheme…⌘<Command-Less Than
New Scheme…
Manage Schemes…
1 Opens the scheme editing dialog for editing prior to performing the chosen command.

Table 1-8  Window menu command shortcuts
Command
Key Binding
Shortcut
Minimize⌘MCommand-M
Zoom
Select Next Tab⌘}Command-}
Select Previous Tab⌘{Command-{
Welcome to Xcode⇧⌘1Shift-Command-1
Organizer⇧⌘2Shift-Command-2
Bring All to Front

Table 1-9  Help menu command shortcuts
Command
Key Binding
Shortcut
Xcode Help
Xcode 4 Transition Guide
Quick Help⌃⌘?Control-Command-?
Search Documentation for Selected Text⌃⌥⌘/Control-Option-Command-/
Developer Documentation⌥⌘?Option-Command-?

Source:

Monday, October 28, 2013

Personal portfolio website getting more and more traffic everyday

Personal portfolio website getting more and more traffic every day 

Personal portfolio website getting traffic everyday now.
Just upload October month of visitors graph.
Thanks
dakvikas.webs.com

Friday, October 25, 2013

Configure Web gardens in IIS 7 step by step

Configure Web gardens in IIS 7 step by step: Introduction “Web garden” scaling out by increasing the number of worker processes per CPU. Web gardening will allow more than two subscr...

Thursday, October 3, 2013

How to convert Datatable into string [ ] in C#


Convert Datatable to string array with using for each loop into C#

string[] items = new string[] {};
items = Array.ConvertAll(dt.Select(), new Converter<DataRow, string>(DataRowToString)); 
 
public static string DataRowToString(DataRow dr)
{
        return dr[0].ToString();
}

Tuesday, October 1, 2013

How do disable an account with the ASP.NET Membership Provider?

ASP.NET MEMBERSHIP USER LOCK BY C#

Islocked Method is read only property of membership user.
so we have to use alternatively method. it is same as isLocked method.
From below code we can lock the user from login. Once account has approved or 
unlock after that user will log in .

MembershipUser Lockeduser = Membership.GetUser(newUserAccount.UserID.Value);
if (Lockeduser != null)
{
 //disable online account
 Lockeduser.IsApproved = false;
 Membership.UpdateUser(Lockeduser);                        
}
 
please do not hesitate to comment .

Thanks
Vik Shah 
http://dakvikas.webs.com
 

Friday, September 20, 2013

How to force a page to use SSL (HTTPS) in ASP.NET (VB.NET/C#)

Force a page to use HTTPS instead of HTTP

The following sample code will force a page to use ssl woth asp.net . Please  add code in to Page_Load event

C#  Code

//this is the current url 
System.Uri currentUrl = System.Web.HttpContext.Current.Request.Url; 
//don't redirect if this is localhost 
 if (!currentUrl.IsLoopback)
 { 
  if (!currentUrl.Scheme.Equals(Uri.UriSchemeHttps, StringComparison.CurrentCultureIgnoreCase))
  { 
    //build the secure uri 
    System.UriBuilder secureUrlBuilder = new UriBuilder(currentUrl); 
    secureUrlBuilder.Scheme = Uri.UriSchemeHttps; 
    //use the default port. 
    secureUrlBuilder.Port = -1; 
    //redirect and end the response. 
    System.Web.HttpContext.Current.Response.Redirect(secureUrlBuilder.Uri.ToString()); 
   } 
  } 

VB.NET Code

'this is the current url 
Dim currentUrl As System.Uri = System.Web.HttpContext.Current.Request.Url
'don't redirect if this is localhost
If Not currentUrl.IsLoopback Then
 If Not currentUrl.Scheme.Equals(Uri.UriSchemeHttps, StringComparison.CurrentCultureIgnoreCase) Then
  'build the secure uri
  Dim secureUrlBuilder As System.UriBuilder = New UriBuilder(currentUrl)
  secureUrlBuilder.Scheme = Uri.UriSchemeHttps
  'use the default port. 
  secureUrlBuilder.Port = -1
  'redirect and end the response.
  System.Web.HttpContext.Current.Response.Redirect(secureUrlBuilder.Uri.ToString())
 End If
End If

Tuesday, September 17, 2013

Forcefully Rename a SQL Server Database






When SQL Server management studio give below error we have forcefully rename  for our database.


Management Studio is telling you that there are connections that it doesn’t want to mess with.
Or when using sp_renamedb from a query window, you might see this similar error:
Msg 5030, Level 16, State 2, Line 1
The database could not be exclusively locked to perform the operation.
If you really really want to rename the database and don’t care at all about in-flight transactions, then use this script/template I recently came up with:
A Forceful rename  Script:

ALTER DATABASE [old_name]
 
 SET SINGLE_USER WITH ROLLBACK IMMEDIATE
GO
ALTER DATABASE [old_name]
 
 MODIFY NAME = [new_name]
GO
ALTER DATABASE [new_name]
 SET MULTI_USER
GO
 
 
 

Monday, July 15, 2013

[SOLVED] "Attaching the Script debugger to process iexplore.exe failed" message after upgrading to Internet Explorer 10

HUGE thanks going out to Dmitri Leonov - MSFT in a stackoverflow article about the same message.
After updating to Internet Explorer 10, I started receiving the error when debugging with Visual Studio 2010:

"Attaching the Script debugger to process [####] iexplore.exe failed.  Another debugger may already be attached to the process."

The fix:

  • Close all instances of Internet Explorer.  (I will add you can leave Visual Studio open)
  • Run a command prompt as Administrator and paste this little gem into the command line:
 regsvr32.exe "%ProgramFiles(x86)%\Common Files\Microsoft Shared\VS7Debug\msdbg2.dll"
 
It worked like a champ for me (and apparently others from comments on the stackoverflow post.)

Reference links :
  1. http://stackoverflow.com/questions/13421797/vs2010-and-ie10-attaching-the-script-debugger-to-process-iexplore-exe-failed 
  2.  http://development.thatoneplace.net/2013/04/solved-attaching-script-debugger-to.html
  3. http://social.msdn.microsoft.com/Forums/vstudio/en-US/bbf26b82-5d00-4472-9bc4-be77a1fc8e9e/attaching-the-script-debugger-to-process-iexploreexe-on-machine-failed-a-debugger-is-already
 

Wednesday, July 10, 2013

Differentiate: Response.Redirect() and Server.Transfer() (via http://code4project.com)
Differentiate: Response.Redirect() and Server.Transfer() In ASP.Net “Server” and “Response” both are objects. 1.Server.Transfer 2.Response.Redirect Server.Transfer and Response.Redirect both are used to transfer one page to another. But there…