Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Project Tool Window

Shows all files in project.
Show all files in project.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be "Shows" as it describes what the "Project Tool Window" does.

Read it as "(The) Project Tool Window .. shows all files in the project"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please read the rest of the original files. I just rephrased a few to have all written in the same way. Who or what the described thing does is up to the reader, I'd say.


Alt+1 (Windows/Linux)
Command+1 (Mac OS X)

1. Open the Project Tool Window.
2. Using the arrow keys, navigate to \01 - Navigation\01 - Navigate to something you know\Code\license.txt
2. Using the arrow keys, navigate to \01 - Navigation\01 - Navigate to something you know\Code\license.txt.
3. Start typing "Bar". Navigate to the next exercise.
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ Navigate to a class by (partial) class name.
Ctrl+N (Windows/Linux)
Command+O (Mac OS X)

1. Navigate to class
1. Navigate to class.
Navigate to the Customer class. Open the file by hitting enter.

2. Use CamelHumps to navigate
Navigate to the CustomerRepository class using CamelHumps (type "CR" or "CusR")
2. Use CamelHumps to navigate.
Navigate to the CustomerRepository class using CamelHumps (type "CR" or "CusR").

3. Use middle matching to navigate
Navigate to the DocumentRepository class by searching for "Repo"
3. Use middle matching to navigate.
Navigate to the DocumentRepository class by searching for "Repo".

4. Use wildcards
Navigate to the SettingsRepository by searching for "S*Repo"
4. Use wildcards.
Navigate to the SettingsRepository by searching for "S*Repo".

5. Filter to only check PHP files by clicking the filter icon.

6. Include non-project classes
Check the "Include non-project classes" checkbox and navigate to ArrayObject (PHP SPL library)
6. Include non-project classes.
Check the "Include non-project classes" checkbox and navigate to ArrayObject (PHP SPL library).
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ Navigate to a file by (partial) file name.
Ctrl+Shift+N (Windows/Linux)
Shift+Command+O (Mac OS X)

1. Navigate to file
Navigate to the customer.php file. Open the file by hitting enter.
1. Navigate to file.
Navigate to the Customer.php file. Open the file by hitting enter.

2. Use CamelHumps to navigate
Navigate to the CustomerRepository.php file using CamelHumps (type "CR" or "CusR")
2. Use CamelHumps to navigate.
Navigate to the CustomerRepository.php file using CamelHumps (type "CR" or "CusR").

3. Use middle matching to navigate
Navigate to the DocumentRepository.php file by searching for "Repo"
3. Use middle matching to navigate.
Navigate to the DocumentRepository.php file by searching for "Repo".

4. Use wildcards
Navigate to the license.txt file by searching for "l*.txt"
4. Use wildcards.
Navigate to the license.txt file by searching for "l*.txt".

5. Filter to only check JavaScript files by clicking the filter icon. Search for Customer.js.
5. Filter to only check JavaScript files by clicking the filter icon. Search for Customer.js.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ Navigate to a symbol by (partial) symbol name.
Ctrl+Alt+Shift+N (Windows/Linux)
Alt+Command+O (Mac OS X)

1. Navigate to symbol
1. Navigate to symbol.
Navigate to the $_name protected variable in Customer.php.

2. Use CamelHumps to navigate
Navigate to the getName() function using CamelHumps (type "gN" or "getN")
2. Use CamelHumps to navigate.
Navigate to the getName() function using CamelHumps (type "gN" or "getN").

3. Note that middle matching and wildcards also work when searching symbols.
Example searches: "ebra" of "celebr*day" for the celebrateBirthday() function.

4. Filter to only search in JavaScript files and find the celebrateBirthday() function in the Customer.js file.
4. Filter to only search in JavaScript files and find the celebrateBirthday() function in the Customer.js file.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ Double shift (Windows/Linux/Mac OS X)

2. Navigate to the $_name protected variable in Customer.php.

3. Use CamelHumps to navigate
Navigate to the CustomerRepository class using CamelHumps (type "CR" or "CusR")
3. Use CamelHumps to navigate.
Navigate to the CustomerRepository class using CamelHumps (type "CR" or "CusR").

4. Use middle matching to navigate
Navigate to the DocumentRepository.php file by searching for "Repo"
4. Use middle matching to navigate.
Navigate to the DocumentRepository.php file by searching for "Repo".

5. Find the "About" action and invoke it.
5. Find the "About" action and invoke it.
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ var Customer = function() {
this.celebrateBirthday = function() {
console.log('Yay!');
}
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class Customer {
protected $_age;

/**
* @param $name string
* @param $age int
* @param string $name
* @param int $age
*/
function __construct($name, $age)
{
Expand Down Expand Up @@ -57,4 +57,4 @@ public function getName()
public function celebrateBirthday() {
echo 'Yay!';
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

class CustomerRepository extends RepositoryBase {

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

class DocumentRepository extends RepositoryBase {

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

abstract class RepositoryBase {

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

class SettingsRepository extends RepositoryBase {

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Go to Declaration
*
* Navigates to the declaration of a symbol.
* Navigate to the declaration of a symbol.
*
* Ctrl+Click or Ctrl+B (Windows/Linux)
* Command+Click or Command+B (Mac OS X)
Expand All @@ -16,15 +16,15 @@
$name = 'Hadi';
$age = 53;

// 1. Ctrl+Click (or Command+Click on Mac) on the Customer symbol
// 2. Use the keyboard shortcut
// 3. Go to Declaration for the $age variable passed into the below constructor
// 1. Ctrl+Click (or Command+Click on Mac) on the Customer symbol.
// 2. Use the keyboard shortcut.
// 3. Go to Declaration for the $age variable passed into the below constructor.
$person = new Customer($name, $age);

// 4. Navigate to the celebrateBirthday() function
// 5. Go to Declaration for the $person variable
// 4. Navigate to the celebrateBirthday() function.
// 5. Go to Declaration for the $person variable.
$person->celebrateBirthday();

// 6. Go to Declaration for the ArrayIterator SPL class
// 6. Go to Declaration for the ArrayIterator SPL class.
$myArray = array();
$myArrayIterator = new \ArrayIterator($myArray);
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Navigate back / forward
*
* Returns the caret to the last navigation point.
* Return the caret to the last navigation point.
*
* Ctrl+Alt+Left / Right (Windows/Linux)
* Alt+Command+Left / Right (Mac OS X)
Expand All @@ -14,14 +14,14 @@ class NavigateBack {
public function startingPoint() {
$navigateTo = new NavigateTo();

// 1. Navigate to destination()
// 3. Navigate forward using the keyboard shortcut
// 1. Navigate to destination().
// 3. Navigate forward using the keyboard shortcut.
$navigateTo->destination();
}
}

class NavigateTo {
public function destination() {
// 2. Now navigate back using the keyboard shortcut
// 2. Now navigate back using the keyboard shortcut.
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ public function thirdFunction() {
public function fourthFunction() {

}
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Recent files

Show a list of recent files
Show a list of recent files.

Ctrl+E (Windows/Linux)
Command+E (Mac OS X)

1. Filter list by typing - middle matching, wildcards and CamelHumps
1. Filter list by typing - middle matching, wildcards and CamelHumps.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Navigate to Last Edit Location.
*
* Navigates back to where code was last edited.
* Navigate back to where code was last edited.
*
* Ctrl+Shift+Backspace (Windows/Linux)
* Shift+Command+Delete (Mac OS X)
Expand All @@ -12,15 +12,15 @@

class NavigateRecent {
public function startingPoint() {
// 1. Navigate to step1()
// 1. Navigate to step1().
$this->step1();
}

public function step1() {
// 2. Uncomment the following line
// 2. Uncomment the following line.
// echo 'In step 1.';

// 3. Navigate to step2()
// 3. Navigate to step2().
$this->step2();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Bookmarks
*
* Set, unset and navigate to bookmarks
* Set, unset and navigate to bookmarks.
*
* Windows/Linux:
* F11 Toggle Bookmark
Expand All @@ -20,8 +20,8 @@
* 2. Navigate to secondFunction() and set a bookmark.
* 3. Navigate to thirdFunction() and set bookmark with mnemonic, assign it number 3.
* 4. Show a list of bookmarks and navigate between them.
* 5. Navigate to the numbered bookmark (Ctrl+3)
* 6. Remove the bookmark from secondFunction()
* 5. Navigate to the numbered bookmark (Ctrl+3).
* 6. Remove the bookmark from secondFunction().
* 7. From the bookmarks list, add a description to one of the bookmarks.
*/

Expand All @@ -39,4 +39,4 @@ public function secondFunction() {
public function thirdFunction() {

}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Go to Implementation
*
* Navigates to the implementation of a given class.
* Navigate to the implementation of a given class.
*
* Ctrl+Alt+B (Windows/Linux)
* Alt+Command+B (Mac OS X)
Expand All @@ -15,12 +15,12 @@

class GoToImplementation {
public function pleaseGoThere() {
// 1. Put the caret on Customer and Go To Implementation
// Get the choice of Customer, SilverCustomer and GoldCustomer
// 1. Put the caret on Customer and Go To Implementation.
// Get the choice of Customer, SilverCustomer and GoldCustomer.
// SilverCustomer and GoldCustomer are indirect implementations because they derive from Customer.
$customer = new Customer('Maarten', 0);

// 2. Put the caret on GoldCustomer and Go To Implementation
// 2. Put the caret on GoldCustomer and Go To Implementation.
$customer = new GoldCustomer('Maarten');
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ public function setDiscount($discount);
* @param string $name
*/
public function setName($name);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Go to super class / method
*
* Navigates to the super class or method.
* Navigate to the super class or method.
*
* Ctrl+U (Windows/Linux)
* Command+U (Mac OS X)
Expand All @@ -18,10 +18,10 @@ class GoldCustomer extends Customer
// 3. Bring up the Hierarchy tool window and inspect the class hierarchy.
// You can also navigate from the tool window.
/**
* @param $name string
* @param string $name
*/
function __construct($name)
{
parent::__construct($name, 0.25);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ class Customer implements ICustomer
protected $_discount;

/**
* @param $name string
* @param $discount double
* @param string $name
* @param double $discount
*/
function __construct($name, $discount)
{
Expand Down Expand Up @@ -50,4 +50,4 @@ public function getName()
{
return $this->_name;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
class SilverCustomer extends Customer
{
/**
* @param $name string
* @param string $name
*/
function __construct($name)
{
parent::__construct($name, 0.10);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Highlight Usages in File
*
* Highlights usages of a given symbol in the current file.
* Highlight usages of a given symbol in the current file.
*
* Ctrl+Shift+F7 (Windows/Linux)
* Shift+Command+F7 (Mac OS X)
Expand Down Expand Up @@ -33,4 +33,4 @@ public function adjust($original, $delta) {

return $newValue;
}
}
}
Loading