Visual Studio et UNITY Refactoring, Extraction de méthode

Retrouvez dans cette vidéo quelques astuces comme l’ Extraction de méthode, le Refactoring, La convention de nommage des méthodes, mais aussi quelques raccourcis clavier indispensable pour gagner en productivité et en lisibilité. Il ne s’agit ici que de quelques astuces pour vous faciliter la vie dans le développement de vos jeux vidéo.

Visual Studio 2017 est disponible Ici Gratuitement, au cas ou vous ne l’auriez pas choisi lors de l’installation d’ UNITY.

Les Raccourcis Clavier dans Visual Studio

Build

Commandes Raccourcis clavier
Build.BuildSolution Ctrl+Maj+B
Build.Cancel Ctrl+Break
Build.Compile Ctrl+F7
Build.RunCodeAnalysisonSolution Alt+F11

Menus contextuels de l’affichage de classes

Commandes Raccourcis clavier
ClassViewContextMenus.ClassViewMultiselectProjectreferencesItems.Properties Alt+Entrée

Débogage

Commandes Raccourcis clavier
Debug.ApplyCodeChanges Alt+F10
Debug.Autos Ctrl+Alt+V, A
Debug.BreakAll Ctrl+Alt+Break
Debug.BreakatFunction Ctrl+B
Debug.Breakpoints Ctrl+Alt+B
Debug.CallStack Ctrl+Alt+C
Debug.DeleteAllBreakpoints Ctrl+Maj+F9
Debug.DiagnosticsHub.Launch Alt+F2
Debug.Disassembly Ctrl+Alt+D
Debug.DOMExplorer Ctrl+Alt+V, D
Debug.EnableBreakpoint Ctrl+F9
Debug.Exceptions Ctrl+Alt+E
Debug.GoToPreviousCallorIntelliTraceEvent Ctrl+Maj+F11
Debug.Graphics.StartDiagnostics Alt+F5
Debug.Immediate Ctrl+Alt+I
Debug.IntelliTraceCalls Ctrl+Alt+Y, T
Debug.IntelliTraceEvents Ctrl+Alt+Y, F
Debug.JavaScriptConsole Ctrl+Alt+V, C
Debug.Locals Ctrl+Alt+V, L
Debug.LocationToolbar.ProcessCombo Ctrl+5
Debug.LocationToolbar.StackFrameCombo Ctrl+7
Debug.LocationToolbar.ThreadCombo Ctrl+6
Debug.LocationToolbar.ToggleCurrentThreadFlaggedState Ctrl+8
Debug.LocationToolbar.ToggleFlaggedThreads Ctrl+9
Debug.Memory1 Ctrl+Alt+M, 1
Debug.Memory2 Ctrl+Alt+M, 2
Debug.Memory3 Ctrl+Alt+M, 3
Debug.Memory4 Ctrl+Alt+M, 4
Debug.Modules Ctrl+Alt+U
Debug.ParallelStacks Ctrl+Maj+D, S
Debug.ParallelWatch1 Ctrl+Maj+D, 1
Debug.ParallelWatch2 Ctrl+Maj+D, 2
Debug.ParallelWatch3 Ctrl+Maj+D, 3
Debug.ParallelWatch4 Ctrl+Maj+D, 4
Debug.Processes Ctrl+Alt+Z
Debug.QuickWatch Maj+F9

ou

Ctrl+Alt+Q

Debug.RefreshWindowsapp Ctrl+Maj+R
Debug.Registers Ctrl+Alt+G
Debug.Restart Ctrl+Maj+F5
Debug.RunToCursor Ctrl+F10
Debug.SetNextStatement Ctrl+Maj+F10
Debug.ShowCallStackonCodeMap Ctrl+Maj+`
Debug.ShowNextStatement Alt+Num *
Debug.Start F5
Debug.StartWindowsPhoneApplicationAnalysis Alt+F1
Debug.StartWithoutDebugging Ctrl+F5
Debug.StepInto F11
Debug.StepIntoCurrentProcess Ctrl+Alt+F11
Debug.StepIntoSpecific Maj+Alt+F11
Debug.StepOut Maj+F11
Debug.StepOutCurrentProcess Ctrl+Maj+Alt+F11
Debug.StepOver F10
Debug.StepOverCurrentProcess Ctrl+Alt+F10
Debug.StopDebugging Maj+F5
Debug.StopPerformanceAnalysis Maj+Alt+F2
Debug.Tasks Ctrl+Maj+D, K
Debug.Threads Ctrl+Alt+H
Debug.ToggleBreakpoint F9
Debug.ToggleDisassembly Ctrl+F11
Debug.Watch1 Ctrl+Alt+W, 1
Debug.Watch2 Ctrl+Alt+W, 2
Debug.Watch3 Ctrl+Alt+W, 3
Debug.Watch4 Ctrl+Alt+W, 4

Menus contextuels du débogueur

Commandes Raccourcis clavier
DebuggerContextMenus.BreakpointsWindow.Delete Alt+F9, D
DebuggerContextMenus.BreakpointsWindow.GoToDisassembly Alt+F9, A
DebuggerContextMenus.BreakpointsWindow.GoToSourceCode Alt+F9, S

Concentrateur de diagnostic

Commande Raccourci clavier
DiagnosticsHub.StopCollection Ctrl+Alt+F2

Modifier

Commandes
Edit.Copy Ctrl+C

ou

Ctrl+Insert

Edit.Cut Ctrl+X

ou

Maj+Suppr

Edit.CycleClipboardRing Ctrl+Maj+V

ou

Ctrl+Maj+Insert

Edit.Delete Supprimer
Edit.Find Ctrl+F
Edit.FindAllReferences Maj+F12
Edit.FindinFiles Ctrl+Maj+F
Edit.FindNext F3
Edit.FindNextSelected Ctrl+F3
Edit.FindPrevious Maj+F3
Edit.FindPreviousSelected Ctrl+Maj+F3
Edit.GenerateMethod Ctrl+K, Ctrl+M
Edit.GoTo CTRL+G
Edit.GoToDeclaration Ctrl+F12
Edit.GoToDefinition F12
Edit.GoToFindCombo Ctrl+D
Edit.GoToNextLocation F8
Edit.GoToPrevLocation Maj+F8
Edit.InsertSnippet Ctrl+K, Ctrl+X
Edit.MoveControlDown Ctrl+Bas
Edit.MoveControlDownGrid Flèche bas
Edit.MoveControlLeft Ctrl+Gauche
Edit.MoveControlLeftGrid Gauche
Edit.MoveControlRight Ctrl+Droite
Edit.MoveControlRightGrid Flèche droite
Edit.MoveControlUp Ctrl+Haut
Edit.MoveControlUpGrid Flèche haut
Edit.NavigateTo Ctrl+,
Edit.NextBookmark Ctrl+K, Ctrl+N
Edit.NextBookmarkInFolder Ctrl+Maj+K, Ctrl+Maj+N
Edit.OpenFile CTRL+MAJ+G
Edit.Paste Ctrl+V

ou

Maj+Insert

Edit.PreviousBookmark Ctrl+K, Ctrl+P
Edit.PreviousBookmarkInFolder Ctrl+Maj+K, Ctrl+Maj+P
Edit.QuickFindSymbol Maj+Alt+F12
Edit.Redo Ctrl+Y

ou

Ctrl+Maj+Z

ou

Maj+Alt+Retour arrière

Edit.RefreshRemoteReferences Ctrl+Maj+J
Edit.Replace Ctrl+H
Edit.ReplaceinFiles Ctrl+Maj+H
Edit.SelectAll Ctrl+A
Edit.SelectNextControl Onglet
Edit.SelectPreviousControl Maj+Tab
Edit.ShowTileGrid Entrée
Edit.SizeControlDown Ctrl+Maj+Bas
Edit.SizeControlDownGrid Maj+Bas
Edit.SizeControlLeft Ctrl+Maj+Gauche
Edit.SizeControlLeftGrid Maj+Gauche
Edit.SizeControlRight Ctrl+Maj+Droite
Edit.SizeControlRightGrid Maj+Droite
Edit.SizeControlUp Ctrl+Maj+Haut
Edit.SizeControlUpGrid Maj+Haut
Edit.StopSearch Alt+F3, S
Edit.SurroundWith Ctrl+K, Ctrl+S
Edit.Undo Ctrl+Z

ou

Alt+Retour arrière

Menus contextuels de l’éditeur

Commandes Raccourcis clavier
EditorContextMenus.CodeWindow.Breakpoint.BreakpointEditlabels Alt+F9, L
EditorContextMenus.CodeWindow.CodeMap.ShowItem Ctrl+`
EditorContextMenus.CodeWindow.Execute Ctrl+Alt+F5
EditorContextMenus.CodeWindow.GoToView Ctrl+M, Ctrl+G
EditorContextMenus.CodeWindow.ToggleHeaderCodeFile Ctrl+K, Ctrl+O
EditorContextMenus.CodeWindow.ViewCallHierarchy Ctrl+K, Ctrl+T

ou

Ctrl+K, T

Fichier

Commandes Raccourcis clavier
File.Exit Alt+F4
File.NewFile Ctrl+N
File.NewProject Ctrl+Maj+N
File.NewWebSite Maj+Alt+N
File.OpenFile Ctrl+O
File.OpenProject Ctrl+Maj+O
File.OpenWebSite Maj+Alt+O
File.Print Ctrl+P
File.SaveAll Ctrl+Maj+S
File.SaveSelectedItems Ctrl+S
File.ViewinBrowser Ctrl+Maj+W

Aide

Commandes Raccourcis clavier
Help.AddandRemoveHelpContent Ctrl+Alt+F1
Help.F1Help F1
Help.ViewHelp Ctrl+F1
Help.WindowHelp Maj+F1

Test de charge

Commande Raccourci clavier
LoadTest.JumpToCounterPane Ctrl+R, Q

Autres menus contextuels

Commande Raccourci clavier
OtherContextMenus.MicrosoftDataEntityDesignContext.AddNewDiagram Insert

Project

Commandes Raccourcis clavier
Project.AddExistingItem Maj+Alt+A
Project.AddNewItem Ctrl+Maj+A
Project.ClassWizard Ctrl+Maj+X
Project.Override Ctrl+Alt+Insert
Project.Previewchanges Alt+;, Alt+C
Project.Publishselectedfiles Alt+;, Alt+P
Project.Replaceselectedfilesfromserver Alt+;, Alt+R

Menus contextuels Projet et Solution

Commandes Raccourcis clavier
ProjectandSolutionContextMenus.Item.MoveDown Alt+Bas
ProjectandSolutionContextMenus.Item.MoveUp Alt+Haut

Refactorisation

Commandes Raccourcis clavier
Refactor.EncapsulateField Ctrl+R, Ctrl+E
Refactor.ExtractInterface Ctrl+R, Ctrl+I
Refactor.ExtractMethod Ctrl+R, Ctrl+M
Refactor.RemoveParameters Ctrl+R, Ctrl+V
Refactor.Rename Ctrl+R, Ctrl+R
Refactor.ReorderParameters Ctrl+R, Ctrl+O

Explorateur de solutions

Commandes Raccourcis clavier
SolutionExplorer.OpenFilesFilter Ctrl+[, O

ou

Ctrl+[, Ctrl+O

SolutionExplorer.PendingChangesFilter Ctrl+[, P

ou

Ctrl+[, Ctrl+P

SolutionExplorer.SyncWithActiveDocument Ctrl+[, S

ou

Ctrl+[, Ctrl+S

Équipe

Commandes Raccourcis clavier
Team.Git.GoToGitBranches Ctrl+0, Ctrl+N

ou

Ctrl+0, N

Team.Git.GoToGitChanges Ctrl+0, Ctrl+G

ou

Ctrl+0, G

Team.Git.GoToGitCommits Ctrl+0, Ctrl+O

ou

Ctrl+0, O

Team.TeamExplorerSearch Ctrl+’

Menus contextuels Team Foundation

Commandes Raccourcis clavier
TeamFoundationContextMenus.Commands.GoToBuilds Ctrl+0, Ctrl+B

ou

Ctrl+0, B

TeamFoundationContextMenus.Commands.GoToConnect Ctrl+0, Ctrl+C

ou

Ctrl+0, C

TeamFoundationContextMenus.Commands.GoToDocuments Ctrl+0, Ctrl+D

ou

Ctrl+0, D

TeamFoundationContextMenus.Commands.GoToHome Ctrl+0, Ctrl+H

ou

Ctrl+0, H

TeamFoundationContextMenus.Commands.GoToMyWork Ctrl+0, Ctrl+M

ou

Ctrl+0, M

TeamFoundationContextMenus.Commands.GoToPendingChanges Ctrl+0, Ctrl+P

ou

Ctrl+0, P

TeamFoundationContextMenus.Commands.GoToReports Ctrl+0, Ctrl+R

ou

Ctrl+0, R

TeamFoundationContextMenus.Commands.GoToSettings Ctrl+0, Ctrl+S

ou

Ctrl+0, S

TeamFoundationContextMenus.Commands.GoToWebAccess Ctrl+0, Ctrl+A

ou

Ctrl+0, A

TeamFoundationContextMenus.Commands.GoToWorkItems Ctrl+0, Ctrl+W

ou

Ctrl+0, W

Test

Commandes Raccourcis clavier
Test.UseCodedUITestBuilder Ctrl+\, Ctrl+C
Test.UseExistingActionRecording Ctrl+\, Ctrl+A

Explorateur de tests

Commandes Raccourcis clavier
TestExplorer.DebugAllTests Ctrl+R, Ctrl+A
TestExplorer.DebugAllTestsInContext Ctrl+R, Ctrl+T
TestExplorer.RepeatLastRun Ctrl+R, L
TestExplorer.RunAllTests Ctrl+R, A
TestExplorer.RunAllTestsInContext Ctrl+R, T

Outils

Commandes Raccourcis clavier
Tools.AttachtoProcess Ctrl+Alt+P
Tools.CodeSnippetsManager Ctrl+K, Ctrl+B
Tools.ForceGC Ctrl+Maj+Alt+F12, Ctrl+Maj+Alt+F12
Tools.GoToCommandLine Ctrl+/

Vue

Commandes Raccourcis clavier
View.AllWindows Maj+Alt+M
View.ArchitectureExplorer Ctrl+\, Ctrl+R
View.Backward Alt+flèche gauche
View.BookmarkWindow Ctrl+K, Ctrl+W
View.BrowseNext Ctrl+Maj+1
View.BrowsePrevious Ctrl+Maj+2
View.CallHierarchy Ctrl+Alt+K
View.ClassView Ctrl+Maj+F
View.ClassViewGoToSearchCombo Ctrl+K, Ctrl+V
View.CodeDefinitionWindow Ctrl+\, D

ou

Ctrl+\, Ctrl+D

View.CommandWindow Ctrl+Alt+A
View.DataSources Maj+Alt+D
View.DocumentOutline Ctrl+Alt+T
View.EditLabel F2
View.ErrorList Ctrl+\, E

ou

Ctrl+\, Ctrl+E

View.F#Interactive Ctrl+Alt+F
View.FindSymbolResults Ctrl+Alt+F12
View.Forward Alt+flèche droite
View.ForwardBrowseContext Ctrl+Maj+7
View.FullScreen Maj+Alt+Entrée
View.NavigateBackward Ctrl+-
View.NavigateForward Ctrl+Maj+-
View.NextError Ctrl+Maj+F12
View.Notifications Ctrl+W, N

ou

Ctrl+W, Ctrl+N

View.ObjectBrowser Ctrl+Alt+J
View.ObjectBrowserGoToSearchCombo Ctrl+K, Ctrl+R
View.Output Ctrl+Alt+O
View.PopBrowseContex Ctrl+Maj+8
View.PropertiesWindow F4
View.PropertyPages Maj+F4
View.ResourceView Ctrl+Maj+E
View.ServerExplorer Ctrl+Alt+S
View.ShowSmartTag Maj+Alt+F10

ou

Ctrl+.

View.SolutionExplorer Ctrl+Alt+L
View.SQLServerObjectExplorer Ctrl+\, Ctrl+S
View.TaskList Ctrl+\, T

ou

Ctrl+\, Ctrl+T

View.TfsTeamExplorer Ctrl+\, Ctrl+M
View.Toolbox Ctrl+Alt+X
View.UMLModelExplorer Ctrl+\, Ctrl+U
View.ViewCode F7
View.ViewDesigner Maj+F7
View.WebBrowser Ctrl+Alt+R
View.ZoomIn Ctrl+Maj+.
View.ZoomOut Ctrl+Maj+,

Fenêtre

Commandes Raccourcis clavier
Window.ActivateDocumentWindow Échap
Window.AddTabtoSelection Ctrl+Maj+Alt+Espace
Window.CloseDocumentWindow Ctrl+F4
Window.CloseToolWindow Maj+Échap
Window.KeepTabOpen Ctrl+Alt+Début
Window.MovetoNavigationBar Ctrl+F2
Window.NextDocumentWindow Ctrl+F6
Window.NextDocumentWindowNav Ctrl+Tab
Window.NextPane Alt+F6
Window.NextSplitPane F6
Window.NextTab Ctrl+Alt+Pg suiv

ou

Ctrl+PgDn

Window.NextTabandAddtoSelection Ctrl+Maj+Alt+Pg suiv
Window.NextToolWindowNav Alt+F7
Window.PreviousDocumentWindow Ctrl+Maj+F6
Window.PreviousDocumentWindowNav Ctrl+Maj+Tab
Window.PreviousPane Maj+Alt+F6
Window.PreviousSplitPane Maj+F6
Window.PreviousTab Ctrl+Alt+Pg préc

ou

Ctrl+Pg préc

Window.PreviousTabandAddtoSelection Ctrl+Maj+Alt+Pg préc
Window.PreviousToolWindowNav Maj+Alt+F7
Window.QuickLaunch Ctrl+Q
Window.QuickLaunchPreviousCategory Ctrl+Maj+Q
Window.ShowDockMenu Alt+-
Window.ShowEzMDIFileList Ctrl+Alt+Bas
Window.SolutionExplorerSearch Ctrl+;
Window.WindowSearch Alt+`

Azure

Commandes Raccourcis clavier
WindowsAzure.RetryMobileServiceScriptOperation Ctrl+Num *, Ctrl+R
WindowsAzure.ShowMobileServiceScriptErrorDetails Ctrl+Num *, Ctrl+D
Commandes Raccourcis clavier
OtherContextMenus.MicrosoftDataEntityDesignContext.MoveProperties.Down Alt+Bas
OtherContextMenus.MicrosoftDataEntityDesignContext.MoveProperties.Down5 Alt+PgDn
OtherContextMenus.MicrosoftDataEntityDesignContext.MoveProperties.ToBottom Alt+Fin
OtherContextMenus.MicrosoftDataEntityDesignContext.MoveProperties.ToTop Alt+Origine
OtherContextMenus.MicrosoftDataEntityDesignContext.MoveProperties.Up Alt+Haut
OtherContextMenus.MicrosoftDataEntityDesignContext.MoveProperties.Up5 Alt+Pg préc
OtherContextMenus.MicrosoftDataEntityDesignContext.Refactor.Rename Ctrl+R, R
OtherContextMenus.MicrosoftDataEntityDesignContext.RemovefromDiagram Maj+Suppr
View.EntityDataModelBrowser Ctrl+1
View.EntityDataModelMappingDetails Ctrl+2
Commandes Raccourcis clavier
ClassDiagram.Collapse Num –
ClassDiagram.Expand Num +
Edit.Delete Ctrl+Suppr
Edit.ExpandCollapseBaseTypeList Maj+Alt+B
Edit.NavigateToLollipop Maj+Alt+L
Edit.RemovefromDiagram Supprimer
View.ViewCode Entrée
Commandes Raccourcis clavier
OtherContextMenus.UITestEditorContextMenu.CopyReferencetoClipboard Ctrl+C
OtherContextMenus.UITestEditorContextMenu.InsertDelayBefore Ctrl+Alt+D
OtherContextMenus.UITestEditorContextMenu.LocateAll Maj+Alt+L
OtherContextMenus.UITestEditorContextMenu.LocatetheUIControl Ctrl+Maj+L
OtherContextMenus.UITestEditorContextMenu.Movecode Ctrl+Alt+C
OtherContextMenus.UITestEditorContextMenu.Splitintoanewmethod Ctrl+Maj+T
Commandes Raccourcis clavier
OtherContextMenus.ColumnContext.InsertColumn Insert
OtherContextMenus.DbTableContext.Add.Column Ctrl+L
Commandes Raccourcis clavier
Diff.IgnoreTrimWhitespace Ctrl+\, Ctrl+Barre d’espace
Diff.InlineView Ctrl+\, Ctrl+1
Diff.LeftOnlyView Ctrl+\, Ctrl+3
Diff.NextDifference F8
Diff.PreviousDifference Maj+F8
Diff.RightOnlyView Ctrl+\, Ctrl+4
Diff.SideBySideView Ctrl+\, Ctrl+2
Diff.SwitchBetweenLeftAndRight Ctrl+\, Ctrl+Tab
Diff.SynchronizeViewToggle Ctrl+\, Ctrl+Bas
EditorContextMenus.CodeWindow.AddComment Ctrl+Maj+K
EditorContextMenus.CodeWindow.EditLocalFile Ctrl+Maj+P
Commandes Raccourcis clavier
DOMExplorer.Refresh F5
DOMExplorer.SelectElement Ctrl+B
DOMExplorer.ShowLayout Ctrl+Maj+I
Commande Raccourci clavier
OtherContextMenus.FSIConsoleContext.CancelInteractiveEvaluation Ctrl+Break
Commandes Raccourcis clavier
ArchitectureContextMenus.DirectedGraphContextMenu.Advanced.Add.AddNode Insert
ArchitectureContextMenus.DirectedGraphContextMenu.Advanced.Select.BothDependencies B
ArchitectureContextMenus.DirectedGraphContextMenu.Advanced.Select.IncomingDependencies I
ArchitectureContextMenus.DirectedGraphContextMenu.Advanced.Select.OutgoingDependencies O
ArchitectureContextMenus.DirectedGraphContextMenu.NewComment Ctrl+Maj+K

ou

Ctrl+E, C

ArchitectureContextMenus.DirectedGraphContextMenu.Remove Supprimer
ArchitectureContextMenus.DirectedGraphContextMenu.Rename F2
Commandes Raccourcis clavier
Debug.Graphics.CaptureFrame Ctrl+F12
Debug.GraphicsMovePixelSelectionDown Maj+Alt+Bas
Debug.GraphicsMovePixelSelectionLeft Maj+Alt+Gauche
Debug.GraphicsMovePixelSelectionRight Maj+Alt+Droite
Debug.GraphicsMovePixelSelectionUp Maj+Alt+Haut
Debug.GraphicsResetZoom Maj+Alt+0
Debug.GraphicsZoomIn Maj+Alt+=
Debug.GraphicsZoomOut Maj+Alt+-
A propos de upln 279 Articles
En informatique le problème se situe souvent entre la chaise et le clavier !

Soyez le premier à commenter

Poster un Commentaire

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.