Skip to content

Commit 47defdd

Browse files
committed
refactor: ordering of content in file management docs
1 parent 14da09d commit 47defdd

File tree

1 file changed

+57
-60
lines changed

1 file changed

+57
-60
lines changed

docs/05-file-management.md

Lines changed: 57 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -127,50 +127,6 @@ Tabs can also be dragged between panes.
127127
src="https://docs-images.phcode.dev/videos/file-management/drag-drop-tabs.mp4"
128128
/>
129129

130-
131-
### Showing or Hiding the Tab Bar
132-
You can enable or disable the Tab Bar in several ways:
133-
134-
#### 1. From the View Menu
135-
Go to `View > File Tab Bar` to toggle it on or off.
136-
137-
![View > File Tab Bar](./images/fileManagement/disable-tab-bar-1.png "View > File Tab Bar")
138-
139-
#### 2. From the Sidebar
140-
Click the **double-arrow** icon in the top-right corner of the sidebar,
141-
then use the `Show File Tab Bar` option in the dropdown to toggle the Tab Bar.
142-
143-
![Disable Tab Bar](./images/fileManagement/disable-tab-bar-2.png "Disable Tab Bar")
144-
145-
#### 3. From Preferences
146-
You can also toggle the Tab Bar by updating the `showTabBar` option in the preferences file.
147-
```json
148-
"tabBar.options": {
149-
"showTabBar": false
150-
}
151-
```
152-
*Add this in your preferences file to hide the Tab Bar.*
153-
Set the value to `true` to enable it.
154-
See [Editing Preferences](./editing-text#editing-preferences) if you need help in editing the preferences.
155-
156-
### Limiting the Number of Tabs
157-
**Phoenix Code** allows you to control the maximum number of tabs displayed in the Tab Bar at once.
158-
By default, the value is set to `-1`, which means all open tabs are displayed.
159-
160-
For example, if you want to show a maximum of **3 tabs** in the Tab Bar, you can add the following to your preferences file:
161-
162-
```json
163-
"tabBar.options": {
164-
"numberOfTabs": 3,
165-
"showTabBar": true
166-
}
167-
```
168-
You can set `numberOfTabs` to any positive number to define the maximum tab limit.
169-
If you set it to `0`, the Tab Bar will be hidden entirely.
170-
Any negative value (such as `-1`) displays all open tabs without restriction.
171-
> The active tab is always visible, except when the `numberOfTabs` value is set to `0`.
172-
173-
174130
### Tab Bar Context Menu
175131
When you right-click a tab, a context menu appears which has multiple options so that you can work with tabs easily.
176132

@@ -211,6 +167,48 @@ The Tab Bar displays Git file status indicators, showing which files are **untra
211167

212168
> These indicators appear only when your project is a Git repository.
213169
170+
### Limiting the Number of Tabs
171+
**Phoenix Code** allows you to control the maximum number of tabs displayed in the Tab Bar at once.
172+
By default, the value is set to `-1`, which means all open tabs are displayed.
173+
174+
For example, if you want to show a maximum of **3 tabs** in the Tab Bar, you can add the following to your preferences file:
175+
176+
```json
177+
"tabBar.options": {
178+
"numberOfTabs": 3,
179+
"showTabBar": true
180+
}
181+
```
182+
You can set `numberOfTabs` to any positive number to define the maximum tab limit.
183+
If you set it to `0`, the Tab Bar will be hidden entirely.
184+
Any negative value (such as `-1`) displays all open tabs without restriction.
185+
> The active tab is always visible, except when the `numberOfTabs` value is set to `0`.
186+
187+
### Showing or Hiding the Tab Bar
188+
You can enable or disable the Tab Bar in several ways:
189+
190+
#### 1. From the View Menu
191+
Go to `View > File Tab Bar` to toggle it on or off.
192+
193+
![View > File Tab Bar](./images/fileManagement/disable-tab-bar-1.png "View > File Tab Bar")
194+
195+
#### 2. From the Sidebar
196+
Click the **double-arrow** icon in the top-right corner of the sidebar,
197+
then use the `Show File Tab Bar` option in the dropdown to toggle the Tab Bar.
198+
199+
![Disable Tab Bar](./images/fileManagement/disable-tab-bar-2.png "Disable Tab Bar")
200+
201+
#### 3. From Preferences
202+
You can also toggle the Tab Bar by updating the `showTabBar` option in the preferences file.
203+
```json
204+
"tabBar.options": {
205+
"showTabBar": false
206+
}
207+
```
208+
*Add this in your preferences file to hide the Tab Bar.*
209+
Set the value to `true` to enable it.
210+
See [Editing Preferences](./editing-text#editing-preferences) if you need help in editing the preferences.
211+
214212
---
215213

216214
## Working Files
@@ -247,22 +245,6 @@ You can reorder files in Working Files by dragging and dropping them, just like
247245
src="https://docs-images.phcode.dev/videos/file-management/drag-drop-working-files.mp4"
248246
/>
249247

250-
### Showing or Hiding Working Files
251-
You can show or hide the Working Files panel in two ways:
252-
253-
#### 1. From the Sidebar
254-
Click the **double-arrow** icon in the top-right corner of the sidebar, then use the `Show Working Files` option in the dropdown to toggle Working Files.
255-
256-
![Disable Working Files](./images/fileManagement/disable-working-files.png "Disable Working Files")
257-
258-
#### 2. From Preferences
259-
You can also toggle Working Files by updating the `showWorkingSet` property in the preferences file.
260-
```json
261-
"showWorkingSet": true
262-
```
263-
Set the value to `false` to hide Working Files.
264-
See [Editing Preferences](./editing-text#editing-preferences) if you need help editing the preferences.
265-
266248
### Working Files Context Menu
267249
When you right-click a file in Working Files, a context menu appears with various file operations.
268250

@@ -310,5 +292,20 @@ When you right-click a file in Working Files, a context menu appears with variou
310292

311293
> These options provide quick access to common file operations directly from Working Files.
312294
295+
### Showing or Hiding Working Files
296+
You can show or hide the Working Files panel in two ways:
297+
298+
#### 1. From the Sidebar
299+
Click the **double-arrow** icon in the top-right corner of the sidebar, then use the `Show Working Files` option in the dropdown to toggle Working Files.
300+
301+
![Disable Working Files](./images/fileManagement/disable-working-files.png "Disable Working Files")
302+
303+
#### 2. From Preferences
304+
You can also toggle Working Files by updating the `showWorkingSet` property in the preferences file.
305+
```json
306+
"showWorkingSet": true
307+
```
308+
Set the value to `false` to hide Working Files.
309+
See [Editing Preferences](./editing-text#editing-preferences) if you need help editing the preferences.
313310

314311

0 commit comments

Comments
 (0)