導航:首頁 > 編程語言 > sublime打開php瀏覽器打開

sublime打開php瀏覽器打開

發布時間:2022-09-24 17:48:20

⑴ 如何能讓php文件在sublime text中用瀏覽器打開後預覽

ctrl+b打開瀏覽器,假設你的www目錄為D:\\www\\

編輯sublime Text/Data/Packages/User/open_broswer.py
url_map = {
'D:\\www\\' : 'http://localhost/',
}

[注意] D:\\www\\應為你的localhost指向的真實目錄

點擊-->Preferences->Key Bindings->User
在出現的界面中,加入如下內容(如果已經有就不用再加了):
[
{ "keys": ["ctrl+b"], "command": "open_browser" }
]

⑵ sublime頁面怎麼在瀏覽器打開

sublime頁面在瀏覽器打開的方法

⑶ sublime怎樣設置f12打開瀏覽器

sublime用快捷鍵打開瀏覽器方法如下:
一、安裝插件SideBarEnhancements打開Package Control找下SideBarEnhancements即可快速安裝
ctrl+shift+P 轉 Package Control: install Package 查找SideBarEnhancements選擇即可

二、設置快捷鍵

{
"keys": ["f1"],
"command": "side_bar_files_open_with", "args": {"application": "D:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe", "extensions": ".*", "paths": []}
},
{
"keys": ["f2"],
"command": "side_bar_files_open_with", "args": {"application": "C:\\Users\\delll\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe", "extensions": ".*", "paths": []}
},
{
"keys": ["f4"],
"command": "side_bar_files_open_with", "args": {"application": "C:\\Program Files\\Internet Explorer\\iexplore.exe", "extensions": ".*", "paths": []}
},
{
"keys": ["f5"],
"command": "side_bar_files_open_with", "args": {"application": "C:\\Program Files (x86)\\360\\360safe\\360AppLoader.exe", "extensions": ".*", "paths": []}
}
打開Key Binding-user復制上面代碼,然後修改為瀏覽器路徑,重啟sublime即可。
1.f3是查找下一個的快捷鍵,設置時小心沖突

2.選中圖標右鍵—屬性如下,記得把\改為\\即可

⑷ php運行環境弄好了,在sublime下編輯php文件,怎麼在瀏覽器打開

將你編輯的PHP文件放在你的php環境的網站目錄中,一般為wwwroot 、htdoc、web等

⑸ sublimetext3中編寫php時中文顯示正常,在瀏覽器中打開後就變成了亂碼

應該是你代碼的編碼和網頁的編碼格式不一樣。如果你網頁上面的編碼用的charset=utf8,那麼一般是你sublimetext3的編碼不對。你保存代碼的時候file->save with encoding->utf8試試。總而言之就是你代碼的文本編碼和網頁解析文本編碼不一致。

⑹ sublime怎麼用快捷鍵打開瀏覽器

工具原料:電腦+win8

sublime用快捷鍵打開瀏覽器方法如下:

一、安裝插件SideBarEnhancements打開Package Control找下SideBarEnhancements即可快速安裝

ctrl+shift+P 轉 Package Control: install Package 查找SideBarEnhancements選擇即可

2.選中圖標右鍵—屬性如下,記得把改為\即可

⑺ 如何能讓php文件在sublime text中用瀏覽器打開後預覽

配置在Chrome,Firefox中打開
安裝 SideBarEnhancements(packages control-> 輸入install packages-> SideBarEnhancements能找到這個插件)
然後通過ctrl + k, ctrl + b打開側邊欄,在側邊欄的html文件上右擊,找到 open width -> edit applications
然後在這里邊設置firefox打開的方式。

⑻ 如何能讓php文件在sublime text中用瀏覽器打開後預覽

配置在Chrome,Firefox中打開

安裝 SideBarEnhancements(packages control-> 輸入install packages-> SideBarEnhancements能找到這個插件)
然後通過ctrl + k, ctrl + b打開側邊欄,在側邊欄的html文件上右擊,找到 open width -> edit applications
然後在這里邊設置firefox打開的方式。

application : 路徑要修改為自己默認安裝的路徑。
[
{"id": "side-bar-files-open-with",
"children":
[
//application firefox
{
"caption": "firefox",
"id": "side-bar-files-open-with-firefox",

"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
"extensions":".*" //any file with extension
}
},

{"caption":"-"},
{
"caption": "chrome",
"id": "side-bar-files-open-with-chrome",

"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
"extensions":".*" //any file with extension
}
}
]
}
]
設置快捷鍵
Key bindings -> User

[
{ "keys": ["ctrl+shift+c"], "command": "_path" },
{ "keys": ["alt+f12"], "command": "open_in_browser" },
{ "keys": ["f12"], "command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
"extensions":".*" //any file with extension
} },
{ "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
"extensions":".*" //any file with extension
}
}

]

閱讀全文

與sublime打開php瀏覽器打開相關的資料

熱點內容
三軌直銷系統源碼 瀏覽:321
手機銀行app怎麼更新呢 瀏覽:247
單片機匯編學習 瀏覽:531
配1u伺服器主機需要注意什麼 瀏覽:38
演算法工程師小李 瀏覽:633
程序員搬到哪裡買房好 瀏覽:627
steam測試亞洲伺服器怎麼切換 瀏覽:513
vc命令行編譯工程 瀏覽:331
當貝市場解壓步驟 瀏覽:458
哪裡有賣安卓系統的app 瀏覽:472
河南省雲伺服器租賃雲主機 瀏覽:755
基金app哪個好2021年 瀏覽:41
迷你電梯單片機 瀏覽:38
編譯電腦 瀏覽:502
程序員進入網吧 瀏覽:247
cad圖轉換pdf 瀏覽:809
魔域單機版命令 瀏覽:488
ftp伺服器需要開放什麼埠 瀏覽:327
ros編譯單個進程 瀏覽:731
如何查別人伺服器的地址 瀏覽:453